<div id="content">
    <div class="row s_page_title">
        <sa-big-breadcrumbs [items]="['系统配置','车辆运行状态']" icon="fa fa-cog"
            class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
    </div>
    <sa-widgets-grid>
        <div class="s_table">
            <div sa-widget [editbutton]="false" color="darken" class="clearfix">
                <header><span class="widget-icon"> <i class="fa fa-table"></i> </span>
                    <h2>车辆运行状态</h2>
                </header>
                <div>
                    <div class="widget-body no-padding">
                        <div class="page-header clearfix s_table_opreation">
                            <div class="clearfix">
                                <div class="form-group fitPadding left deviceBox"
                                    style="padding: 0;margin: 5px 12px 5px 0;">
                                    <label class="control-label inline_block bin_box">设备版本</label>
                                    <div class="deviceStyle inline_block" style="padding: 0;">
                                        <div class="device1 fitPadding inline_block "
                                            style="padding: 0;border:1px solid #ccc;overflow: hidden;margin-left: -5px;">
                                            <select class="form-control" [(ngModel)]='protocolVersion'
                                                (change)="versionChange($event.target.value)"
                                                style="height: 26px;line-height: 26px;padding: 0 12px;border:none">
                                                <option value="">请选择</option>
                                                <option *ngFor="let item of versionArr" [value]='item.id'>{{item.name}}
                                                </option>
                                            </select>
                                        </div><span class="inline_block fix_height"
                                            style="vertical-align: top;line-height: 28px;">-</span>
                                        <div class="top_module inline_block fitPhone"
                                            style="margin:0;padding-right: 0;vertical-align: top;margin-left: -5px;">
                                            <select name="" class="select2" id="binSelect2">
                                                <option value=""></option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="left" *ngIf="systemUpgrade">
                                    <button type="button" class="btn btn-primary s_btn_fix"
                                        (click)="updata_device()">设备升级</button>
                                    <button type="button" class="btn btn-primary s_btn_fix"
                                        (click)="new_updata_device(newUpdataModal)">设备升级 [新]</button>
                                    <button [ngClass]="{notAccess: protocolVersion === '3'||protocolVersion === '1'}"
                                        type="button" class="btn btn-primary s_btn_fix"
                                        (click)='mulupdata(mulUpdataModal)'>批量升级</button>
                                    <button type="button" class="btn btn-primary s_btn_fix"
                                        (click)='mulConfigUpload(mulUploadModal)'>批量设置</button>
                                    <button [ngClass]="{notAccess: protocolVersion === '3'}" type="button"
                                        class="btn btn-primary s_btn_fix" (click)="resetZero(lgModal)">远程清零</button>
                                    <button [ngClass]="{notAccess: protocolVersion === '3'}" type="button"
                                        class="btn btn-primary s_btn_fix"
                                        (click)="resetOrder(resetOrderModal)">重置设备ID</button>
                                    <button [ngClass]="{notAccess: protocolVersion === '1'}" type="button"
                                        class="btn btn-primary s_btn_fix"
                                        (click)="paramConfig(paramConfigModal)">参数配置</button>

                                    <!-- <button type="button" class="btn btn-primary s_btn_fix" (click)="setHeader(headerModal)">设置表头</button> -->
                                    <!-- <button type="button" class="btn btn-primary s_btn_fix"
											(click)="resetMatlabStart(resetMatlabModal)">重置算法执行起点</button> -->
                                    <!-- <button type="button" class="btn btn-primary s_btn_fix"
                                        (click)="setFactoryOnline(factoryOnlineModal)">设置厂区在线</button>
                                    <button type="button" class="btn btn-primary s_btn_fix"
                                        (click)="offLineManage(offlineManageModal)">离线统计</button>
                                    <button [ngClass]="{notAccess: protocolVersion === '3'}" type="button"
                                        class="btn btn-primary s_btn_fix" (click)="weightFixBtn(weightFixModal)">重量修正
                                    </button> -->
                                    <!-- <button type="button" class="btn btn-primary s_btn_fix" (click)="setFrequencyBtn(setFrequencyModal)">设置频率</button> -->

                                    <button type="button" class="btn btn-primary s_btn_fix"
                                        (click)="advancedFnBtn(AdvancedFnModal)">高级功能
                                    </button>
                                </div>
                            </div>
                            <sa-batch-updata></sa-batch-updata>
                            <div class="clearfix" style="margin-top: 10px;">
                                <div style="float:left">
                                    <sa-company-tree-car companyTreeId="companyTree" wrapId="content"
                                        [isShowCarSort]="true" [isShowCarNum]="false" [isLinkCompanyAndCar]='false'
                                        [companyData]="{'companyName':selectedCompanyName,'companyId':selectedCompanyId}"
                                        (companySelected)="companySelected($event)"></sa-company-tree-car>
                                </div>
                                <div class="top_module left"
                                    style="border: 1px solid #ccc;overflow: hidden;border-radius: 4px;">
                                    <span class="module_text" style="border-radius: 0;">过滤条件
                                    </span><select name="" [(ngModel)]='filterType'
                                        class="form-control inline_block sort_box">
                                        <option value="">无</option>
                                        <option value="1">设备离线[全]</option>
                                        <option value="2">设备离线[未知原因]</option>
                                        <option value="3">设备离线[断电中]</option>
                                        <option value="4">GPS异常</option>
                                        <option value="5">重量大于150</option>
                                        <option value="6">未升级</option>
                                        <option value="7">未设系数</option>
                                    </select>
                                </div>
                                <div class="top_module left"
                                    style="border: 1px solid #ccc;overflow: hidden;border-radius: 4px;">
                                    <span class="module_text" style="border-radius: 0;">排序
                                    </span><select name="" [(ngModel)]='sortType'
                                        class="form-control inline_block sort_box" (change)="sortChange()">
                                        <option value="">默认</option>
                                        <option value="1">重量升序</option>
                                        <option value="2">重量降序</option>
                                        <option value="3">版本号升序</option>
                                        <option value="4">版本号降序</option>
                                        <option value="5">重量时间升序</option>
                                        <option value="6">重量时间降序</option>
                                    </select>
                                </div>
                                <div class="left" style="vertical-align: middle;margin-left: 16px;margin-top: 5px;">
                                    <label class="checkbox-inline"
                                        style="font-size: 14px;height:28px;line-height: 28px;vertical-align: middle;">
                                        <input type="checkbox" class="checkbox"
                                            (change)="isOnline($event.target.checked)">
                                        <span>在线</span>
                                    </label>
                                </div>
                                <div class="left top-search cancel_margin" style="margin-left: 24px;">
                                    <input type="text" [(ngModel)]="searchKey" (change)="table_search()"
                                        class="search-input" placeholder="设备ID、车牌号...">
                                    <span class="top-search-box">
                                        <button class="top-search-btn" type="button" (click)="table_search()"> <i
                                                class="fa fa-search"></i></button>
                                    </span>
                                </div>
                                <div class="left" style="vertical-align: middle;margin-left: 16px;">
                                    <button type="button" style="" class="btn btn-primary s_btn_fix"
                                        (click)="table_search()">查询</button>
                                    <!-- <button type="button" style="" class="btn btn-primary s_btn_fix" (click)="deviceDetail('btn',deviceDetailModal)">设备详情</button> -->
                                    <button *ngIf="isShowSignalTesting" type="button" style=""
                                        class="btn btn-primary s_btn_fix"
                                        (click)="SignalTesting(signalTestingModal)">信噪比检测</button>
                                    <button type="button" class="btn btn-primary s_btn_fix"
                                        (click)="exportData()">导出</button>
                                </div>
                            </div>
                        </div>
                        <div class="table_scroll">
                            <table
                                class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                                <thead>
                                    <tr>
                                        <!-- <th *ngFor="let row of faultList;" [style.display]="row.isHide=='0'?'table-cell':'none'">
                                            <div *ngIf="row.fieldName == 'isChecked'" class="checkbox" style="margin:0;left: 5px;text-align: center;">
                                                <label>
                                                    <input type="checkbox" class="checkbox style-0" [(ngModel)]="allChecked" (click)="allSelected()">
                                                    <span></span>
                                                </label>
                                            </div>
                                            <span *ngIf="row.fieldName != 'isChecked' && row.fieldName != 'operation1'">{{row.field}}</span>
                                            <span *ngIf="row.fieldName == 'operation1' && hasRowDeletePermission">操作</span>
                                        </th> -->
                                        <th>
                                            <div class="checkbox" style="margin:0;left: 5px;text-align: center;">
                                                <label>
                                                    <input type="checkbox" class="checkbox style-0"
                                                        [(ngModel)]="allChecked" (click)="allSelected()">
                                                    <span></span>
                                                </label>
                                            </div>
                                        </th>
                                        <th>操作</th>
                                        <th>公司名称</th>
                                        <th>车牌号</th>
                                        <th>设备编号</th>
                                        <th>重量(吨)</th>
                                        <th>车辆分类</th>
                                        <th>重量时间</th>
                                        <th>GPS时间</th>
                                        <th>状态</th>
                                        <th>软件版本</th>
                                        <th>硬件版本</th>
                                        <th>传感器通道</th>
                                        <th>系数</th>
                                        <th>安装时间</th>
                                        <th>备注</th>
                                        <th *ngIf="hasRowDeletePermission">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr *ngFor="let row of tableData; let i = index" [attr.data-index]="i"
                                        [ngClass]='{selected: row.isChecked }'
                                        (click)="singleRowSelected(row,$event,i)">
                                        <!-- <td *ngFor="let item of faultList;" [ngClass]="item.fieldName == isChecked?checkbox-td:''" [style.display]="item.isHide=='0'?'table-cell':'none'">
                                            <div *ngIf="item.fieldName == 'isChecked'" class="checkbox" style="margin:0;left: 5px;text-align: center;">
                                                <label class="checkbox-label">
                                                    <input type="checkbox" class="checkbox style-0" [(ngModel)]="row.isChecked" (click)='rowSelected(row,$event,i)'>
                                                    <span class="checkbox-flag"></span>
                                                </label>
                                            </div>
                                            <div *ngIf="item.fieldName == 'operation'">
                                                <button type="button" (click)='deviceDetail(row,deviceDetailModal)'>详情</button> -->
                                        <!--<button  type="button" (click)='factor(row,factorModal.show())'>系数标定</button>-->
                                        <!--<button  type="button" (click)='paramConfig(row,paramConfigModal)'>参数配置</button>-->
                                        <!-- <button type="button" (click)="open_img(row,ImgModal)" *ngIf="row.imageInfo != null && row.imageInfo.length !=0">图片</button>
                                            </div>
                                            <div *ngIf="item.fieldName == 'carNumber'">
                                                <img *ngIf="row.carNumber&& row.inRail == 1" src="assets/img/location.png" title="在厂区内" class="location" style="width: 18px;height: 18px;" />
                                                {{row.carNumber}}
                                                <i *ngIf="row.markCombination&&row.markCombination.enterFactory" class="fa fa-truck" aria-hidden="true" style="color: #4cae4c;font-size: 15px;" title="进厂放行车辆"></i>
                                            </div>
                                            <div *ngIf="item.fieldName == 'deviceId'">
                                                <span>{{row.deviceId}}</span>
                                                <span class="frequency" *ngIf="row.frequency>1" title="频率">{{row.frequency}}</span>
                                                <span *ngIf="row.autoReset"><img src="assets/img/robot.png" /></span>
                                            </div>
                                            <div *ngIf="item.fieldName == 'gpsUploadDate'">
                                                <span [ngClass]="{'red bold':row.isShowGPSAlert}">{{row.gpsUploadDate}}</span>
                                            </div>
                                            <div *ngIf="item.fieldName == 'isEnterFactory'" style="position: relative;">
                                                <div *ngIf="row.isEnterFactory == false" style="display: inline-block;">
                                                    <span class="red">在线<span *ngIf="row.alarmType == '2'||row.alarmType == '1'">[断电中]</span></span>
                                                </div>
                                                <div *ngIf="row.isEnterFactory == true" style="display: inline-block;">
                                                    <span *ngIf="row.runStatus === '0'" class="red">离线<span *ngIf="row.alarmType == '2'||row.alarmType == '1'">[断电中]</span><span *ngIf="row.alarmType == '0'">[未知原因]</span><span *ngIf="row.alarmType == '3'">[异常断电]</span>
                                                    </span>
                                                    <span *ngIf="row.runStatus === '1'" class="green">在线<span *ngIf="row.alarmType == '2'||row.alarmType == '1'">[断电中]</span></span>
                                                    <span *ngIf="!(row.runStatus === '1'||row.runStatus === '0')" class="green">{{row.runStatus}}</span>
                                                </div>
                                                <div class="Battery" *ngIf="row.isShowBattery">
                                                    <div class="box">{{row.batteryPer}}</div>
                                                    <div class="backBattery" [style.width.px]="row.BatteryHeight"></div>
                                                    <div class="Battery_icon"></div>
                                                    <span class="batteryPer_hover">电池容量：{{row.batteryPer}}</span>
                                                </div>
                                            </div>
                                            <div *ngIf="item.fieldName == 'version'">
                                                <span>{{row.version}}</span>
                                                <span *ngIf="row.version" class="versionInfo" (click)="versionUpdataDetail(row,versionUpdataInfoModal)">
                                                    <i class="fa fa-question-circle" title="点击查看版本升级信息" style="color: #1A6DDD;font-size: 14px;cursor: pointer;"></i>
                                                </span>
                                            </div>
                                            <div *ngIf="item.fieldName == 'sensorChannelT'">
                                                <span class="channel-style bg-green" [ngClass]="{'bg-normal':!item.flag}" *ngFor="let item of row.sensorChannelT">{{item.value}}</span>
                                            </div>
                                            <div *ngIf="item.fieldName == 'coef'">
                                                <span *ngIf='row.coef.length >0'>
                                                    <span>[</span><span *ngFor="let lis of row.coef;let i = index;">
                                                        <span style="font-weight: bold;">CH{{lis.index}}:</span><span>{{lis.value}}<span *ngIf="i < row.coef.length-1">,</span></span>
                                                    </span><span>]</span>
                                                </span>
                                                <span *ngIf="row.coef.length >0" class="versionInfo" (click)="coefUpdataDetail(row,coefUpdataInfoModal)">
                                                    <i class="fa fa-question-circle" title="点击查看系数设置日志信息" style="color: #1A6DDD;font-size: 14px;cursor: pointer;"></i>
                                                </span>
                                            </div>
                                            <div *ngIf="item.fieldName == 'operation1' && hasRowDeletePermission">
                                                <button type="button" (click)='del_car_running(row)'>删除</button>
                                            </div>
                                            <div *ngIf="
											item.fieldName != 'isChecked' &&
											item.fieldName != 'operation' &&
											item.fieldName != 'carNumber' &&
											item.fieldName != 'deviceId' &&
											item.fieldName != 'gpsUploadDate' &&
											item.fieldName != 'isEnterFactory' &&
											item.fieldName != 'version' &&
											item.fieldName != 'sensorChannelT' &&
											item.fieldName != 'coef' &&
											item.fieldName != 'operation1'">{{row[item.fieldName]}}</div>
                                        </td> -->



                                        <td class="checkbox-td">
                                            <div class="checkbox" style="margin:0;left: 5px;text-align: center;">
                                                <label class="checkbox-label">
                                                    <input type="checkbox" class="checkbox style-0"
                                                        [(ngModel)]="row.isChecked" (click)='rowSelected(row,$event,i)'>
                                                    <span class="checkbox-flag"></span>
                                                </label>
                                            </div>
                                        </td>
                                        <td>
                                            <button type="button"
                                                (click)='deviceDetail(row,deviceDetailModal)'>详情</button>
                                            <!--<button  type="button" (click)='factor(row,factorModal.show())'>系数标定</button>-->
                                            <!--<button  type="button" (click)='paramConfig(row,paramConfigModal)'>参数配置</button>-->
                                            <button type="button" (click)="open_img(row,ImgModal)"
                                                *ngIf="row.imageInfo != null && row.imageInfo.length !=0">图片</button>
                                        </td>
                                        <td>{{row.companyName}}</td>
                                        <td>
                                            <img *ngIf="row.carNumber&& row.inRail == 1" src="assets/img/location.png"
                                                title="在厂区内" class="location" style="width: 18px;height: 18px;" />
                                            {{row.carNumber}}
                                            <i *ngIf="row.markCombination&&row.markCombination.enterFactory"
                                                class="fa fa-truck" aria-hidden="true"
                                                style="color: #4cae4c;font-size: 15px;" title="进厂放行车辆"></i>
                                        </td>
                                        <td>
                                            <span>{{row.deviceId}}</span>
                                            <span class="frequency" *ngIf="row.frequency>1"
                                                title="频率">{{row.frequency}}</span>
                                            <span *ngIf="row.autoReset"><img src="assets/img/robot.png" /></span>
                                        </td>
                                        <td>{{row.weight}}</td>
                                        <td>{{row.useTypeL2}}</td>
                                        <td>{{row.carUploadDate}}</td>
                                        <td>
                                            <span
                                                [ngClass]="{'red bold':row.isShowGPSAlert}">{{row.gpsUploadDate}}</span>
                                        </td>
                                        <!-- <td>
											<div *ngIf="row.isEnterFactory == true&&row.runStatus == '0'" style="color: #FF9800;">
												<span *ngIf="row.alarmType == '2'||row.alarmType == '1'" >断电中</span>
												<span *ngIf="row.alarmType == '0'" >离线（未知原因）</span>
												<span *ngIf="row.alarmType == '3'" >异常断电</span>
											</div>
										</td> -->
                                        <td style="position: relative;">
                                            <div *ngIf="row.isEnterFactory == false" style="display: inline-block;">
                                                <span class="red">在线<span
                                                        *ngIf="row.alarmType == '2'||row.alarmType == '1'">[断电中]</span></span>
                                            </div>
                                            <div *ngIf="row.isEnterFactory == true" style="display: inline-block;">
                                                <span *ngIf="row.runStatus === '0'" class="red">离线<span
                                                        *ngIf="row.alarmType == '2'||row.alarmType == '1'">[断电中]</span><span
                                                        *ngIf="row.alarmType == '0'">[未知原因]</span><span
                                                        *ngIf="row.alarmType == '3'">[异常断电]</span>
                                                </span>
                                                <span *ngIf="row.runStatus === '1'" class="green">在线<span
                                                        *ngIf="row.alarmType == '2'||row.alarmType == '1'">[断电中]</span></span>
                                                <span *ngIf="!(row.runStatus === '1'||row.runStatus === '0')"
                                                    class="green">{{row.runStatus}}</span>
                                            </div>
                                            <div class="Battery" *ngIf="row.isShowBattery">
                                                <div class="box">{{row.batteryPer}}</div>
                                                <div class="backBattery" [style.width.px]="row.BatteryHeight"></div>
                                                <div class="Battery_icon"></div>
                                                <span class="batteryPer_hover">电池容量：{{row.batteryPer}}</span>
                                            </div>
                                        </td>
                                        <!-- 离线原因 -->
                                        <td>
                                            <span>{{row.version}}</span>
                                            <span *ngIf="row.version" class="versionInfo"
                                                (click)="versionUpdataDetail(row,versionUpdataInfoModal)">
                                                <i class="fa fa-question-circle" title="点击查看版本升级信息"
                                                    style="color: #1A6DDD;font-size: 14px;cursor: pointer;"></i>
                                            </span>
                                        </td>
                                        <td>{{row.hwVersion}}</td>
                                        <td>
                                            <span class="channel-style bg-green" [ngClass]="{'bg-normal':!item.flag}"
                                                *ngFor="let item of row.sensorChannelT">{{item.value}}</span>
                                        </td>
                                        <td>
                                            <span *ngIf='row.coef.length >0'>
                                                <span>[</span><span *ngFor="let lis of row.coef;let i = index;">
                                                    <span
                                                        style="font-weight: bold;">CH{{lis.index}}:</span><span>{{lis.value}}<span
                                                            *ngIf="i < row.coef.length-1">,</span></span>
                                                </span><span>]</span>
                                            </span>
                                            <span *ngIf="row.coef.length >0" class="versionInfo"
                                                (click)="coefUpdataDetail(row,coefUpdataInfoModal)">
                                                <i class="fa fa-question-circle" title="点击查看系数设置日志信息"
                                                    style="color: #1A6DDD;font-size: 14px;cursor: pointer;"></i>
                                            </span>
                                        </td>
                                        <td>{{row.installTime}}</td>
                                        <td>{{row.remark}}</td>
                                        <td *ngIf="hasRowDeletePermission">
                                            <button type="button" (click)='del_car_running(row)'>删除</button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="table-fix clearfix">
                            <paginator [totalRecords]="totalCount" [rows]="pageSize" [currentPage]="curPage - 1"
                                (onPageChange)="paginate($event)">
                            </paginator>
                            <button type="button" class="btn default refresh_btn" (click)="refresh()"><i
                                    class="fa fa-refresh"></i></button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </sa-widgets-grid>
    <div id="ParameterDiv" class="row">
        <div style="border: 1px solid #CCC;border-radius: 4px;">
            <div class="">
                <p style="padding: 5px 12px;background: #d3dfef;margin: 0;"><i class="ace-icon fa fa-pencil"></i>参数设置
                </p>
                <div class="hex-checkbox-wrapper">
                    <span>16进制模式</span>
                    <input name="hex" class="hex-checkbox" type="checkbox" id="hex" [(ngModel)]='isHex'>
                </div>
                <div class="hex-checkbox-wrapper" style="left: 230px;">
                    <span>32通道模式</span>
                    <input name="hex" class="hex-checkbox" type="checkbox" id="hex" [(ngModel)]='moreChannelsChecked'>
                </div>
                <div class="channelInputBox">
                    <button (click)="isOpenSetChannel()" class="autoSetBtn">快捷方式 >></button>
                    <div class="inline_block" style="width: calc(100% - 120px);" *ngIf="isOpenAutoSetChannel">
                        <span id="">系数：</span>
                        <input type="text" class="channelInput" [(ngModel)]='autoSetChannelParam'
                            placeholder="例：462610365;0.01,0.02,0.03...   设备ID:分号隔开，通道系数:逗号隔开" />
                        <button class="btn btn-primary btn-xs" (click)="autoSetChannel()"
                            style="position: relative;top: -1px;">自动填充</button>
                    </div>
                </div>

            </div>
            <div class="widget-body">
                <div class="widget-main no-padding">
                    <div class="row" style="margin-top:5px;">
                        <div class="col-xs-6 col-lg-3">
                            <div class="profile-user-info profile-user-info-striped">
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 1 </div>
                                    <div class="profile-info-value">
                                        <input id="channel1_value" [(ngModel)]='channelObj.channel1' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 2 </div>
                                    <div class="profile-info-value">
                                        <input id="channel2_value" [(ngModel)]='channelObj.channel2' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 3 </div>
                                    <div class="profile-info-value">
                                        <input id="channel3_value" [(ngModel)]='channelObj.channel3' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 4 </div>
                                    <div class="profile-info-value">
                                        <input id="channel4_value" [(ngModel)]='channelObj.channel4' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6 col-lg-3">
                            <div class="profile-user-info profile-user-info-striped">
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 5 </div>
                                    <div class="profile-info-value">
                                        <input id="channel5_value" [(ngModel)]='channelObj.channel5' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 6 </div>
                                    <div class="profile-info-value">
                                        <input id="channel6_value" [(ngModel)]='channelObj.channel6' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 7 </div>
                                    <div class="profile-info-value">
                                        <input id="channel7_value" [(ngModel)]='channelObj.channel7' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 8 </div>
                                    <div class="profile-info-value">
                                        <input id="channel8_value" [(ngModel)]='channelObj.channel8' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6 col-lg-3">
                            <div class="profile-user-info profile-user-info-striped">
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 9 </div>
                                    <div class="profile-info-value">
                                        <input id="channel9_value" [(ngModel)]='channelObj.channel9' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 10 </div>
                                    <div class="profile-info-value">
                                        <input id="channel10_value" [(ngModel)]='channelObj.channel10' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 11 </div>
                                    <div class="profile-info-value">
                                        <input id="channel11_value" [(ngModel)]='channelObj.channel11' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 12 </div>
                                    <div class="profile-info-value">
                                        <input id="channel12_value" [(ngModel)]='channelObj.channel12' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6 col-lg-3">
                            <div class="profile-user-info profile-user-info-striped">
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 13 </div>
                                    <div class="profile-info-value">
                                        <input id="channel13_value" [(ngModel)]='channelObj.channel13' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 14 </div>
                                    <div class="profile-info-value">
                                        <input id="channel14_value" [(ngModel)]='channelObj.channel14' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 15 </div>
                                    <div class="profile-info-value">
                                        <input id="channel15_value" [(ngModel)]='channelObj.channel15' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 16 </div>
                                    <div class="profile-info-value">
                                        <input id="channel16_value" [(ngModel)]='channelObj.channel16' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div *ngIf="moreChannelsChecked" class="divider"></div>
                    <div *ngIf="moreChannelsChecked" class="row">
                        <div class="col-xs-6 col-lg-3">
                            <div class="profile-user-info profile-user-info-striped">
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 17 </div>
                                    <div class="profile-info-value">
                                        <input id="channel17_value" [(ngModel)]='channelObj.channel17' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 18 </div>
                                    <div class="profile-info-value">
                                        <input id="channel18_value" [(ngModel)]='channelObj.channel18' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 19 </div>
                                    <div class="profile-info-value">
                                        <input id="channel19_value" [(ngModel)]='channelObj.channel19' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 20 </div>
                                    <div class="profile-info-value">
                                        <input id="channel20_value" [(ngModel)]='channelObj.channel20' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6 col-lg-3">
                            <div class="profile-user-info profile-user-info-striped">
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 21 </div>
                                    <div class="profile-info-value">
                                        <input id="channel21_value" [(ngModel)]='channelObj.channel21' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 22 </div>
                                    <div class="profile-info-value">
                                        <input id="channel22_value" [(ngModel)]='channelObj.channel22' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 23 </div>
                                    <div class="profile-info-value">
                                        <input id="channel23_value" [(ngModel)]='channelObj.channel23' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 24 </div>
                                    <div class="profile-info-value">
                                        <input id="channel24_value" [(ngModel)]='channelObj.channel24' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6 col-lg-3">
                            <div class="profile-user-info profile-user-info-striped">
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 25 </div>
                                    <div class="profile-info-value">
                                        <input id="channel25_value" [(ngModel)]='channelObj.channel25' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 26 </div>
                                    <div class="profile-info-value">
                                        <input id="channel26_value" [(ngModel)]='channelObj.channel26' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 27 </div>
                                    <div class="profile-info-value">
                                        <input id="channel27_value" [(ngModel)]='channelObj.channel27' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 28 </div>
                                    <div class="profile-info-value">
                                        <input id="channel28_value" [(ngModel)]='channelObj.channel28' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6 col-lg-3">
                            <div class="profile-user-info profile-user-info-striped">
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 29 </div>
                                    <div class="profile-info-value">
                                        <input id="channel29_value" [(ngModel)]='channelObj.channel29' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 30 </div>
                                    <div class="profile-info-value">
                                        <input id="channel30_value" [(ngModel)]='channelObj.channel30' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 31 </div>
                                    <div class="profile-info-value">
                                        <input id="channel31_value" [(ngModel)]='channelObj.channel31' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                                <div class="profile-info-row">
                                    <div class="profile-info-name"> Channel 32 </div>
                                    <div class="profile-info-value">
                                        <input id="channel32_value" [(ngModel)]='channelObj.channel32' type="text"
                                            class="input form-control">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row" style="margin-top:5px;">
                        <div class="col-xs-12" style="text-align: center;padding: 15px 0px; position: relative">
                            <span class="hex-tip" *ngIf="isHex">注：16进制模式，下发的字符串长度必须为8位，否则默认置零</span>
                            <button type="button" (click)="getParameter()" class="btn btn-primary"
                                style="width: 120px;">获取</button>
                            <button type="button" (click)='remoteTuning()' class="btn btn-primary"
                                style="width: 120px;">更新</button>
                            <button type="button" (click)='resetSensor(resetSensorModal)' class="btn btn-primary"
                                style="width: 120px;">重置传感器状态</button>
                            <button type="button" (click)='jumpFactorQueue()' class="btn btn-primary"
                                style="width: 120px;">>>系数设置队列</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 高级功能   弹窗-->
    <div bsModal #AdvancedFnModal="bs-modal" class="modal fade" tabindex="-1" role="dialog"
        aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg" style="width: 1000px;">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="closeAdvancedFn(AdvancedFnModal)"
                        aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">高级功能<span *ngIf='modal.carNumber'>-[{{modal.carNumber}}]</span></h4>
                </div>
                <div class="modal-body" style="padding: 0 20px 20px 20px">
                    <div class="dialog-wrapper">
                        <div class="title">
                            <div class="icon"></div>
                            <span>状态类</span>
                        </div>
                        <div class="content">
                            <button type="button" class="btn btn-primary s_btn_fix"
                                (click)="setFactoryOnline(factoryOnlineModal)">设置厂区在线</button>
                            <button type="button" class="btn btn-primary s_btn_fix"
                                (click)="offLineManage(offlineManageModal)">离线统计</button>
                        </div>
                        <div class="title">
                            <div class="icon"></div>
                            <span>重量类</span>
                        </div>
                        <div class="content">
                            <button [ngClass]="{notAccess: protocolVersion === '3'}" type="button"
                                class="btn btn-primary s_btn_fix" (click)="weightFixBtn(weightFixModal)">重量修正
                            </button>
                        </div>
                        <div class="title">
                            <div class="icon"></div>
                            <span>设置类</span>
                        </div>
                        <div class="content">
                            <button type="button" class="btn btn-primary s_btn_fix"
                                (click)="setFrequencyBtn(setFrequencyModal)">设置频率</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 高级功能 弹窗end-->

    <!-- 清零 弹窗-->
    <div bsModal #lgModal="bs-modal" id="lgModal" class="modal fade" tabindex="-1" role="dialog"
        aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="lgModal.hide()" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">远程清零</h4>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <form class="form form-inline " role="form">
                            <div class="row" style="margin-bottom: 24px;">
                                <div class="form-group">
                                    <p>确认采用<span class="red"
                                            style="font-size:14px;">{{protocolVersionName}}</span>协议格式清零吗？</p>
                                </div>
                            </div>
                            <div class="row" style="margin-bottom: 24px;">
                                <div class="form-group">
                                    <label class="control-label">重量小于-1是否自动清零</label>
                                    <div class="inline_block">
                                        <label class="radio radio-inline" style="vertical-align:inherit;">
                                            <input type="radio" class="radiobox" name="style-0a"
                                                (change)="resetChange($event.target.checked,'Y')">
                                            <span>是</span>
                                        </label>
                                        <label class="radio radio-inline" style="vertical-align:inherit;">
                                            <input type="radio" class="radiobox" name="style-0a" checked
                                                (change)="resetChange($event.target.checked,'N')">
                                            <span>否</span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" (click)="lgModal.hide()">取消</button>
                    <button type="button" class="btn btn-primary" (click)="autoReset(lgModal)">确认</button>
                    <button type="button" class="btn btn-primary" (click)="remoteReset(lgModal)">清零</button>
                </div>
            </div>
        </div>
    </div>
    <!--清零弹窗end-->

    <!-- 系数标定 弹窗-->
    <div bsModal #factorModal="bs-modal" class="modal fade" tabindex="-1" role="dialog"
        aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="cancelFactorModal(factorModal)"
                        aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">设备系数标定-{{deviceId}}</h4>
                </div>
                <div class="modal-body">
                    <div class="row form-horizontal">
                        <div class="form-group col-xs-12">
                            <label class="blue control-label col-xs-2" for="datetimepicker1">时间</label>
                            <div class="input-daterange input-group">
                                <input type="text" class="form-control" id="datetimepicker1" />
                                <span class="input-group-addon">至</span>
                                <input type="text" class="form-control" id="datetimepicker2" />
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="blue col-xs-2 control-label" for="weightForReal">实际重量</label>
                            <div class="col-xs-10">
                                <textarea id="weightForReal" [(ngModel)]='weightForReal'
                                    style="width: 100%; min-height: 200px; resize: none;overflow: auto;"></textarea>
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="blue col-xs-2 control-label" for="matlabParam">参数</label>
                            <div class="col-xs-10">
                                <input class="col-xs-8" type="text" disabled="disabled" id="parameter"
                                    value="1000,200,5,2,0">
                                <div class="col-xs-4 control-label">
                                    <label>
                                        <input id="modifyParam" class="ace-checkbox-2" [(ngModel)]='matlabParam'
                                            (change)="matlabChange()" type="checkbox">
                                        <span class="lbl"> 修改Matlab参数</span>
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="blue col-xs-2 control-label" for="resulet">结果</label>
                            <div class="col-xs-10">
                                <input class="col-xs-12" type="text" [(ngModel)]='factorResult' disabled="disabled"
                                    id="calibrationResult">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" (click)="cancelFactorModal(factorModal)">关闭</button>
                    <button type="button" class="btn btn-primary" (click)="getWeight()">获取重量</button>
                    <button type="button" class="btn btn-primary" (click)="dataFormat()">数据格式化</button>
                    <button type="button" class="btn btn-primary" (click)="factorsSubmit(factorModal)">系数标定</button>
                </div>
            </div>
        </div>
    </div>

    <!-- 重置设备ID 弹窗-->
    <div bsModal #resetOrderModal="bs-modal" id="resetOrderModal" class="modal fade" tabindex="-1" role="dialog"
        aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="cancelDeviceReset(resetOrderModal)"
                        aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">重置设备ID</h4>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <form class="form form-inline " role="form">
                            <div class="row" style="margin: 24px 0;">
                                <div class="top_module">
                                    <span class="module_text reset_order_text" style="">车牌号
                                    </span><select class="select2" id="resetCarNumberSelect2"
                                        style="width: 240px;vertical-align: top">
                                        <option value=''></option>
                                    </select>
                                </div>
                                <div style="margin-top: 18px;" *ngIf="deviceInfoTableData.length > 0">
                                    <div class="table_scroll">
                                        <table
                                            class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                                            <thead>
                                                <tr>
                                                    <th>公司名称</th>
                                                    <th>车牌号</th>
                                                    <th>设备ID</th>
                                                    <th>状态</th>
                                                    <th>操作</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr *ngFor="let row of deviceInfoTableData; let i = index"
                                                    [attr.data-index]="i">
                                                    <td>{{row.companyName}}</td>
                                                    <td>{{row.carNumber}}</td>
                                                    <td>{{row.deviceId}}</td>
                                                    <td>
                                                        <div *ngIf="row.isEnterFactory == false">
                                                            <span class="red">在线</span>
                                                        </div>
                                                        <div *ngIf="row.isEnterFactory == true">
                                                            <span *ngIf="row.runStatus === '0'" class="red">离线</span>
                                                            <span *ngIf="row.runStatus === '1'" class="green">在线</span>
                                                            <span
                                                                *ngIf="!(row.runStatus === '1'||row.runStatus === '0')"
                                                                class="green">{{row.runStatus}}</span>
                                                        </div>
                                                    </td>
                                                    <td>
                                                        <button type="button"
                                                            (click)='deviceReset(resetOrderModal,row)'>重置</button>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <!--<div class="modal-footer">
					<button type="button" class="btn btn-default" (click)="cancelDeviceReset(resetOrderModal)">取消</button>
					<button type="button" class="btn btn-primary" (click)="deviceReset(resetOrderModal)" *ngIf="!deviceInfoTableData.length">重置</button>

					<button type="button" class="btn btn-primary" disabled *ngIf="deviceInfoTableData.length > 0">重置</button>
				</div>-->
            </div>
        </div>
    </div>
    <!--重置设备IDend-->

    <!-- 重量修正    弹窗-->
    <div bsModal #weightFixModal="bs-modal" id="resetOrderModal" class="modal fade" tabindex="-1" role="dialog"
        aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="cancelWeightFix(weightFixModal)"
                        aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">重量修正</h4>
                </div>
                <div class="modal-body">
                    <div class="row form-horizontal" style="margin-left:20px">
                        <div style="margin-bottom: 5px;font-weight: bold;font-size: 15px;">
                            <p>数据纠正</p>
                        </div>
                        <!--<div>确认采用以下的倍数修正重量？</div>-->
                        <!--<div class="checkbox">
							<label class="checkbox-inline" style="font-size: 14px;height:28px;line-height: 28px;vertical-align: middle;padding-top: 0;">
					            <input type="checkbox" id="isRectify" name="isRectify" class="checkbox">
					            <span>是否纠正</span>
				          	</label>
						</div>-->
                        <div class="form-group" style="margin-bottom: 10px;">
                            <label class="control-label col-md-2 col-sm-2" style="padding-top: 12px;">是否纠正</label>
                            <div class="col-md-8 col-sm-8">
                                <!-- <div class="inline_block"> -->
                                <div class="checkbox">
                                    <label class="checkbox-inline"
                                        style="font-size: 14px;height:28px;line-height: 28px;vertical-align: middle;padding-top: 0;">
                                        <input type="checkbox" id="isRectify" [(ngModel)]="weightFix.isRectify"
                                            name="isRectify" class="checkbox">
                                        <span></span>
                                    </label>
                                </div>
                                <!-- </div> -->
                            </div>

                        </div>
                        <div class="form-group">
                            <label class="control-label col-md-2 col-sm-2">修正方式</label>
                            <div class="col-md-8 col-sm-8">
                                <div class="inline_block">
                                    <label class="radio radio-inline">
                                        <input type="radio" class="radiobox" [(ngModel)]="weightFix.typeRectify"
                                            name="mulriple" value="1">
                                        <span>倍数</span>
                                    </label>
                                    <label class="radio radio-inline">
                                        <input type="radio" class="radiobox" [(ngModel)]="weightFix.typeRectify"
                                            name="fixedVal" value="2">
                                        <span>固定值</span>
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-md-2 col-sm-2" style="padding-top: 4px;">修正值</label>
                            <div class="col-md-4 col-sm-8">
                                <div class="inline_block">
                                    <input type="text" name="factorRectify" [(ngModel)]="weightFix.factorRectify"
                                        id="factorRectify" style="width: 220px;height: 28px;padding: 0 12px;"
                                        placeholder="输入修正值，默认为1...">
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-8" style="margin-left: 50px;">
                                <button type="button" class="btn btn-primary"
                                    (click)="weightFixSubmit(weightFixModal)">确认</button>
                            </div>
                        </div>
                        <hr style="border-bottom: 1px dashed #ddd" />
                        <div style="margin-bottom: 15px;font-weight: bold;font-size: 15px;">
                            <p>数据推送</p>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-md-2 col-sm-2" style="padding-top: 4px;">推送时间</label>
                            <div class="col-md-4 col-sm-8">
                                <div class="inline_block">
                                    <input type="text" name="lastDate" [(ngModel)]="weightFix.lastDate" id="lastDate"
                                        style="width: 220px;height: 28px;padding: 0 12px;">
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-8" style="margin-left: 50px;">
                                <button type="button" class="btn" *ngIf="weightFix.status == 1"
                                    style="background-color: green;border:none;color:#fff;border-radius: 4px;"
                                    (click)="setIssueData(1)">下发数据[下发中]</button>
                                <button type="button" class="btn" *ngIf="weightFix.status == 0"
                                    style="background-color: #fb3737;border:none;color:#fff;border-radius: 4px;"
                                    (click)="setIssueData(0)">下发数据[已停止]</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" (click)="cancelWeightFix(weightFixModal)">关闭</button>
                </div>
            </div>
        </div>
    </div>
    <!--重量修正end-->

    <!-- 参数配置    弹窗-->
    <div bsModal #paramConfigModal="bs-modal" id="paramConfigModal" class="modal fade" tabindex="-1" role="dialog"
        aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="cancelparamConfig(paramConfigModal)"
                        aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">参数配置</h4>
                </div>
                <div class="modal-body">
                    <div class="row form-horizontal" style="margin-left:20px">
                        <div class="row_module" style="margin:8px 0;">
                            <div class="line">
                                <div class="s_cell">
                                    <div class="s_text">设备ID</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.deviceId" />
                                </div>
                                <button type="button" class="btn btn-primary ms-btn"
                                    (click)="outputDeviceId()">读</button>
                                <button type="button" class="btn btn-primary ms-btn"
                                    (click)="inputDeviceId()">写</button>
                            </div>
                        </div>
                        <div class="row_module" style="margin:8px 0;">
                            <div class="line">
                                <div class="s_cell">
                                    <div class="s_text">当前重量</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.weight" />
                                </div>
                                <button type="button" class="btn btn-primary ms-btn" (click)="outputWeight()">读</button>
                            </div>
                        </div>
                        <div class="row_module" style="margin:8px 0;">
                            <div class="line">
                                <div class="s_cell">
                                    <div class="s_text">上传频率[秒]</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.upload" />
                                </div>
                                <button type="button" class="btn btn-primary ms-btn" (click)="outputUpload()">读</button>
                                <button type="button" class="btn btn-primary ms-btn" (click)="inputUpload()">写</button>
                            </div>
                        </div>
                        <div class="row_module">
                            <div class="row_title">设备版本</div><button type="button" class="btn btn-primary ms-btn"
                                (click)="outputDeviceVersion()">读</button>
                            <div class="line">
                                <div class="s_cell">
                                    <div class="s_text">硬件版本</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.binVersion" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text">固件版本</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.algorithmVersion" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text">BootLoader版本</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.bootLoaderVersion" />
                                </div>
                            </div>
                        </div>
                        <div class="row_module">
                            <div class="row_title">GPS信息</div><button type="button" class="btn btn-primary ms-btn"
                                (click)="outputGPS()">读</button>
                            <div class="line">
                                <div class="s_cell">
                                    <div class="s_text">经度</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.longitude" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text">纬度</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.latitude" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text">车速[KM/H]</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.speed" />
                                </div>
                            </div>
                            <div class="line">
                                <div class="s_cell">
                                    <div class="s_text">方位角</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.azimuth" />
                                </div>
                                <!--<div class="s_cell">
									<div class="s_text">卫星数</div>
									<input type="text" class="s_input" [(ngModel)]="config.satellites" />
								</div>-->
                                <div class="s_cell">
                                    <div class="s_text">有效卫星数</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.GPSstrength" />
                                </div>
                            </div>
                        </div>
                        <div class="row_module">
                            <div class="row_title">GSM信息</div><button type="button" class="btn btn-primary ms-btn"
                                (click)="outputGSM()">读</button>
                            <div class="line">
                                <div class="s_cell">
                                    <div class="s_text">信号强度</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.GSMstrength" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text">ICC ID</div>
                                    <input type="text" class="s_input" style="width: 180px;"
                                        [(ngModel)]="config.ICCId" />
                                </div>
                            </div>
                        </div>
                        <div class="row_module">
                            <div class="row_title">IP地址</div><button type="button" class="btn btn-primary ms-btn"
                                (click)="outputIP()">读</button>
                            <button type="button" class="btn btn-primary ms-btn" (click)="inputIP()">写</button>
                            <div class="line">
                                <div class="s_cell">
                                    <div class="s_text">IP</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.Ip" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text">端口</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.port" />
                                </div>
                            </div>
                        </div>
                        <div class="row_module">
                            <div class="row_title">设备状态</div><button type="button" class="btn btn-primary ms-btn"
                                (click)="outputDeviceStatue()">读</button>
                            <div class="line">
                                <div class="s_cell">
                                    <div class="s_text">电压</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.vcd" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text">ACC信号</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.ACCSignal" />
                                </div>
                            </div>
                            <div class="line">
                                <div class="s_cell">
                                    <div class="s_text">第一路IO状态</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.ioStatusOne" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text">第二路IO状态</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.ioStatusTwo" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text">第三路IO状态</div>
                                    <input type="text" class="s_input" [(ngModel)]="config.ioStatusThree" />
                                </div>
                            </div>
                        </div>
                        <div class="row_module">
                            <div class="row_title">算法参数</div><button type="button" class="btn btn-primary ms-btn"
                                (click)="outputParams()">读</button>
                            <button type="button" class="btn btn-primary ms-btn" (click)="inputParams()">写</button>
                            <div class="line">
                                <div class="s_cell">
                                    <div class="s_text s_small_text">通道1</div>
                                    <input type="text" class="s_input s_small" [(ngModel)]="config.params.channel1" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text s_small_text">通道2</div>
                                    <input type="text" class="s_input s_small" [(ngModel)]="config.params.channel2" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text s_small_text">通道3</div>
                                    <input type="text" class="s_input s_small" [(ngModel)]="config.params.channel3" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text s_small_text">通道4</div>
                                    <input type="text" class="s_input s_small" [(ngModel)]="config.params.channel4" />
                                </div>
                            </div>
                            <div class="line">
                                <div class="s_cell">
                                    <div class="s_text s_small_text">通道5</div>
                                    <input type="text" class="s_input s_small" [(ngModel)]="config.params.channel5" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text s_small_text">通道6</div>
                                    <input type="text" class="s_input s_small" [(ngModel)]="config.params.channel6" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text s_small_text">通道7</div>
                                    <input type="text" class="s_input s_small" [(ngModel)]="config.params.channel7" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text s_small_text">通道8</div>
                                    <input type="text" class="s_input s_small" [(ngModel)]="config.params.channel8" />
                                </div>
                            </div>
                            <div class="line">
                                <div class="s_cell">
                                    <div class="s_text s_small_text">通道9</div>
                                    <input type="text" class="s_input s_small" [(ngModel)]="config.params.channel9" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text s_small_text">通道10</div>
                                    <input type="text" class="s_input s_small" [(ngModel)]="config.params.channel10" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text s_small_text">通道11</div>
                                    <input type="text" class="s_input s_small" [(ngModel)]="config.params.channel11" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text s_small_text">通道12</div>
                                    <input type="text" class="s_input s_small" [(ngModel)]="config.params.channel12" />
                                </div>
                            </div>
                            <div class="line">
                                <div class="s_cell">
                                    <div class="s_text s_small_text">通道13</div>
                                    <input type="text" class="s_input s_small" [(ngModel)]="config.params.channel13" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text s_small_text">通道14</div>
                                    <input type="text" class="s_input s_small" [(ngModel)]="config.params.channel14" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text s_small_text">通道15</div>
                                    <input type="text" class="s_input s_small" [(ngModel)]="config.params.channel15" />
                                </div>
                                <div class="s_cell">
                                    <div class="s_text s_small_text">通道16</div>
                                    <input type="text" class="s_input s_small" [(ngModel)]="config.params.channel16" />
                                </div>
                            </div>
                        </div>
                        <div class="row_module">
                            <div class="row_title">服务到期</div><button type="button" class="btn btn-primary ms-btn"
                                (click)="outputServiceTime()">读</button>
                            <button type="button" class="btn btn-primary ms-btn" (click)="inputServiceTime()">写</button>
                            <div class="line">
                                <div class="s_cell">
                                    <div class="s_text">服务到期</div>
                                    <input class="s_input" [(ngModel)]='config.serviceTime' name='serviceTime'
                                        id="serviceTime" autocomplete="off" placeholder="服务到期日期"
                                        style="width: 180px;" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer" style="text-align: left;">
                    <button type="button" class="btn btn-primary"
                        (click)="paramsOperation('sendCodeForWriteClearZero','算法清零')"
                        style="margin-left: 12px;">算法清零</button>
                    <button type="button" class="btn btn-primary"
                        (click)="paramsOperation('sendCodeForWriteRestart','远程重启')">远程重启</button>
                    <button type="button" class="btn btn-primary"
                        (click)="paramsOperation('sendCodeForWriteReset','恢复出厂设置')">恢复出厂设置</button>
                    <button type="button" class="btn btn-default" (click)="cancelparamConfig(paramConfigModal)"
                        style="float: right;">关闭</button>
                </div>
            </div>
        </div>
    </div>
    <!--参数配置end-->

    <!-- 重置算法执行起点  弹窗-->
    <div bsModal #resetMatlabModal="bs-modal" id="resetOrderModal" class="modal fade" tabindex="-1" role="dialog"
        aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="cancelMatlabReset(resetMatlabModal)"
                        aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">重置算法执行起点</h4>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <form class="form form-inline " role="form">
                            <div class="row" style="margin: 24px 0;">
                                <div class="top_module">
                                    <div class="left reset_matlab_box">
                                        <label class="control-label reset_matlab_label">时间
                                        </label>
                                        <div class="reset_matlab_input_box">
                                            <input type="text" class="form-control reset_matlab_input"
                                                [(ngModel)]='resetMatlabStartTime' id="resetStartTime" name="resetStart"
                                                autocomplete="off" placeholder="请选择" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default"
                        (click)="cancelMatlabReset(resetMatlabModal)">取消</button>
                    <button type="button" class="btn btn-primary" (click)="matlabReset(resetMatlabModal)">重置</button>
                </div>
            </div>
        </div>
    </div>
    <!--重置算法执行起点 end-->

    <!-- 重置传感器    弹窗-->
    <div bsModal #resetSensorModal="bs-modal" id="resetSensorModal" class="modal fade" tabindex="-1" role="dialog"
        aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="cancelResetSensor(resetSensorModal)"
                        aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">重置原因</h4>
                </div>
                <div class="modal-body" style="padding: 20px;">
                    <div class="row form-horizontal">
                        <label class="radio radio-inline" style="padding-top: 0;">
                            <input type="radio" class="radiobox" [(ngModel)]='resetSensorType'
                                (change)="resetSensorChange($event.target.value)" value='1' name="maintain">
                            <span>维修</span>
                        </label>
                        <label class="radio radio-inline" style="padding-top: 0;">
                            <input type="radio" class="radiobox" [(ngModel)]='resetSensorType'
                                (change)="resetSensorChange($event.target.value)" value='2' name="misjudge">
                            <span>误判</span>
                        </label>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default"
                        (click)="cancelResetSensor(resetSensorModal)">取消</button>
                    <button type="button" class="btn btn-primary"
                        (click)="resetSensorSubmit(resetSensorModal)">提交</button>
                </div>
            </div>
        </div>
    </div>
    <!--重置传感器  end-->

    <!-- 批量升级    弹窗-->
    <div bsModal #mulUpdataModal="bs-modal" id="mulUpdataModal" class="modal fade" tabindex="-1" role="dialog"
        aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="cancelUpdata(mulUpdataModal)" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">批量升级</h4>
                </div>
                <form id="mulUpdataFrom" name="mulUpdataFrom" (ngSubmit)="onSubmit(confirmMulupdataModal)"
                    class="form-horizontal" role="form" novalidate="novalidate"
                    [saBootstrapValidator]="validatorOptions">
                    <div class="modal-body" style="padding: 20px;">
                        <div class="row form-horizontal">
                            <div class="form-group clearfix">
                                <label class="control-label col-md-2 col-sm-2 no-padding-right">公司名称<sup>*</sup></label>
                                <div class="col-sm-8">
                                    <div class="clearfix" style="position: relative;">
                                        <div class="s_hover_box s_fix_radius"
                                            style="width: 100%;height: 32px;line-height: 32px;border:none;border-radius: 0;">
                                            <input class="form-control" id="company2" name="selectedCompanyName2"
                                                autocomplete='off'
                                                style="height: 32px!important;line-height: 32px;border-radius: 0;"
                                                [(ngModel)]='selectedCompanyName2' (click)="companyClick2()" type="text"
                                                placeholder="请选择" onfocus="this.blur()" />
                                            <div class="s_del_icon" (click)='delText2()' style="top:8px">x</div>
                                        </div>
                                        <div class="s_tree_box" id="tree_box2" style="width: 100%;top: 32px;">
                                            <div class="treeSearchInputBox">
                                                <input type="text" class="treeSearchInput" id="treeSearchInput"
                                                    (input)="companySearch2()" placeholder="关键字" />
                                                <span class="absoWen" style="right: 90px;"
                                                    *ngIf="selectIndex && selectCount">{{selectIndex}}/{{selectCount}}</span>
                                                <i *ngIf="selectCount" class="fa fa-angle-up angle-up absoArrow"
                                                    (click)="upArrow($event)"></i>
                                                <i *ngIf="selectCount" class="fa fa-angle-down angle-down absoArrow"
                                                    (click)="downArrow($event)"></i>
                                                <i *ngIf="selectCount" class="fa fa-search absoIcon"
                                                    (click)="companySearchBtn()"></i>
                                            </div>
                                            <div class="vision_tree" id="vision_tree2">
                                                <div id="tree2"></div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-md-2 col-sm-2">运输状态</label>
                                <div class="col-md-8 col-sm-8">
                                    <div class="inline_block">
                                        <label class="radio radio-inline">
                                            <input type="radio" class="radiobox" [(ngModel)]="transportStatus"
                                                name="t_all" value="" (change)="transportStatusChange()">
                                            <span>全部</span>
                                        </label>
                                        <label class="radio radio-inline">
                                            <input type="radio" class="radiobox" [(ngModel)]="transportStatus"
                                                name="t_empty" value="0.0" (change)="transportStatusChange()">
                                            <span>空车 [重量为0]</span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group clearfix">
                                <label class="control-label col-md-2 col-sm-2 no-padding-right">车辆分类</label>
                                <div class="col-sm-8 col-sm-8">
                                    <div class="clearfix s_fix_select2">
                                        <select class="form-control select2" id="carTypeSelect2" name="carUseType"
                                            select2 style="width: 100%">
                                            <option value="">全部</option>
                                            <optgroup *ngFor="let item of carTypeList" [label]="item.label">
                                                <option *ngFor="let lis of item.children" [value]='lis.id'>{{lis.label}}
                                                </option>
                                            </optgroup>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group clearfix">
                                <label class="control-label col-md-2 col-sm-2 no-padding-right">硬件版本</label>
                                <div class="col-sm-8 col-sm-8">
                                    <div class="clearfix s_fix_select2">
                                        <select class="form-control" [(ngModel)]="mulUpVersion.hwVersion" id="hwVersion"
                                            name="hwVersion">
                                            <option value="">全部</option>
                                            <option value="4">v4</option>
                                            <option value="5">v5</option>
                                            <option value="7">v7</option>
                                            <option value="8">v8</option>
                                            <option value="9">v9</option>
                                            <option value="10">v10</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group clearfix">
                                <label class="control-label col-sm-2 no-padding-right">升级版本号</label>
                                <div class="col-sm-8">
                                    <div class="clearfix">
                                        <input class="form-control" name="binName" type="text" [ngModel]="binName"
                                            disabled />
                                    </div>
                                </div>
                            </div>
                            <div class="form-group clearfix">
                                <label class="control-label col-md-2 col-sm-2 no-padding-right">原始版本号</label>
                                <div class="col-sm-8">
                                    <div class="clearfix">
                                        <input class="form-control" name="oldVersion" type="text" [ngModel]="oldVersion"
                                            (input)="setOldVersion($event.target.value)" placeholder="请输入原始版本号" />
                                    </div>
                                </div>
                            </div>
                            <div class="form-group clearfix">
                                <label class="control-label col-sm-2 no-padding-right">升级期望数</label>
                                <div class="col-sm-8">
                                    <div class="clearfix">
                                        <input class="form-control" name="expectUpdateNum" type="number"
                                            [ngModel]="expectUpdateNum"
                                            (input)="setExpectUpdateNum($event.target.value)" placeholder="请输入升级期望数" />
                                    </div>
                                </div>
                            </div>
                            <div class="form-group clearfix">
                                <div class="checkbox" style="padding-left: 60px;padding-top: 0;">
                                    <label class="checkbox-inline"
                                        style="font-size: 14px;height:28px;line-height: 28px;vertical-align: middle;padding-top: 0;">
                                        <input type="checkbox" id="isRepeat" [(ngModel)]="isRepeat" name="isRepeat"
                                            class="checkbox">
                                        <span>版本号相同重复升级</span>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <span class="note left">注：批量升级只升级在线车辆</span>
                        <button type="button" class="btn btn-default" (click)="cancelUpdata(mulUpdataModal)">取消</button>
                        <button type="button" class="btn btn-primary"
                            (click)="updataSubmit(confirmMulupdataModal)">提交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <!--批量升级  end-->

    <!-- 批量升级信息确认    弹窗-->
    <div bsModal #confirmMulupdataModal="bs-modal" id="confirmMulupdataModal" class="modal fade" tabindex="-1"
        role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="cancelMulupdata(confirmMulupdataModal)"
                        aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">批量升级信息确认</h4>
                </div>
                <div class="modal-body" style="padding: 20px;">
                    <div class="row form-horizontal">
                        <div>
                            <div style="margin-bottom: 8px;font-size: 12px;">协议名称：<span
                                    style="font-size: 14px;">{{protocolVersionName}}</span></div>
                            <div style="margin-bottom: 8px;font-size: 12px;">公司名称：<span
                                    style="font-size: 14px;">{{selectedCompanyName2}}</span></div>
                            <div style="margin-bottom: 8px;font-size: 12px;">运输状态：<span
                                    style="font-size: 14px;">{{transportStatusText}}</span></div>
                            <div style="margin-bottom: 8px;font-size: 12px;">车辆分类：<span
                                    style="font-size: 14px;">{{carUseTpyeText}}</span></div>
                            <div style="margin-bottom: 8px;font-size: 12px;">硬件版本：<span
                                    style="font-size: 14px;">{{mulUpVersion.hwVersion}}</span></div>
                            <div style="margin-bottom: 8px;font-size: 12px;">版本号相同重复升级：
                                <span style="font-size: 14px;" *ngIf="isRepeat">是</span>
                                <span style="font-size: 14px;" *ngIf="!isRepeat">否</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default"
                        (click)="cancelMulupdata(confirmMulupdataModal)">取消</button>
                    <button type="button" class="btn btn-primary"
                        (click)="mulupdataSubmit(confirmMulupdataModal)">确认升级</button>
                </div>
            </div>
        </div>
    </div>
    <!--批量升级信息确认  end-->

    <!-- 批量设置上传频率   弹窗-->
    <div bsModal #mulUploadModal="bs-modal" id="mulUploadModal" class="modal fade" tabindex="-1" role="dialog"
        aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="FromCancelUpload(mulUploadModal)"
                        aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">批量设置</h4>
                </div>
                <form id="mulUploadFrom" name="mulUploadFrom" class="form-horizontal" role="form"
                    novalidate="novalidate" [saBootstrapValidator]="ULvalidatorOptions">
                    <div class="modal-body" style="padding: 20px;">
                        <div class="row tap">
                            <span class="titTap tap1" [ngClass]="{activeTap: mulUploadTap == '1'}"
                                (click)="mulUploadClick('1')">批量设置上传频率</span>
                            <span class="titTap tap2" [ngClass]="{activeTap: mulUploadTap == '2'}"
                                (click)="mulUploadClick('2')">批量读取硬件版本号</span>
                            <span class="titTap tap3" [ngClass]="{activeTap: mulUploadTap == '3'}"
                                (click)="mulUploadClick('3')">批量读取ICCID</span>
                        </div>
                        <div class="row form-horizontal" style="border: 1px solid #ccc; padding-top: 10px;">
                            <div class="form-group clearfix">
                                <label class="control-label col-md-3 col-sm-3 no-padding-right">公司名称<sup>*</sup></label>
                                <div class="col-sm-8 col-sm-8 company_tree">
                                    <div class="clearfix" style="position: relative;">
                                        <div class="s_hover_box s_fix_radius"
                                            style="width: 100%;height: 32px;line-height: 32px;border:none;border-radius: 0;">
                                            <input class="form-control" id="ULcompany" name="ULselectedCompanyName"
                                                autocomplete='off'
                                                style="height: 32px!important;line-height: 32px;border-radius: 0;"
                                                [(ngModel)]='mulUpload.selectedCompanyName' (click)="ULcompanyClick()"
                                                type="text" placeholder="请选择" onfocus="this.blur()" />
                                            <div class="s_del_icon" (click)='ULdelText()' style="top:8px">x</div>
                                        </div>
                                        <div class="s_tree_box" id="UL_tree_box" style="width: 100%;top: 32px;">
                                            <div class="treeSearchInputBox">
                                                <input type="text" class="treeSearchInput" id="ULtreeSearchInput"
                                                    (input)="ULcompanySearch()" placeholder="关键字" />
                                            </div>
                                            <div class="vision_tree" id="UL_vision_tree">
                                                <div id="ULtree"></div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group clearfix">
                                <label class="control-label col-md-3 col-sm-3 no-padding-right">车辆分类</label>
                                <div class="col-sm-8 col-sm-8">
                                    <div class="clearfix s_fix_select2">
                                        <select class="form-control select2" id="ULcarTypeSelect2" name="carUseType"
                                            select2 style="width: 100%">
                                            <option value="">全部</option>
                                            <optgroup *ngFor="let item of carTypeList" [label]="item.label">
                                                <option *ngFor="let lis of item.children" [value]='lis.id'>{{lis.label}}
                                                </option>
                                            </optgroup>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <!--<div class="form-group clearfix">
								<label class="control-label col-md-3 col-sm-3 no-padding-right">硬件版本</label>
								<div class="col-sm-8 col-sm-8">
									<div class="clearfix">
										<select class="form-control" [(ngModel)]="mulUpload.hwVersion" id="ULhwVersion" (change)="mulUpload.hwVersion = $event.target.value" name="hwVersion">
											<option value="">全部</option>
											<option value="v4">v4</option>
											<option value="v7">v7</option>
										</select>
									</div>
								</div>
							</div>-->
                            <div class="form-group clearfix" [style.display]="mulUploadTap == '1'?'block':'none'">
                                <label
                                    class="control-label col-md-3 col-sm-3 no-padding-right">上传频率[秒]<sup>*</sup></label>
                                <div class="col-sm-8 col-sm-8">
                                    <div class="clearfix s_fix_select2">
                                        <!--<input type="text" class="form-control" name="time" [(ngModel)]="mulUpload.time" />-->
                                        <select name="" class="select2" select2 id="uploadSelect2" style="width: 100%;">
                                            <option value=""></option>
                                        </select>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group clearfix" [style.display]="mulUploadTap == '1'?'block':'none'">
                                <label class="control-label col-md-3 col-sm-3 no-padding-right">筛选条件</label>
                                <div class="col-sm-8 col-sm-8">
                                    <div class="clearfix s_fix_select2">
                                        <!--<input type="text" class="form-control" name="time" [(ngModel)]="mulUpload.time" />-->
                                        <select name="is1sFrequency" class="form-control" style="width: 100%;"
                                            [(ngModel)]='is1sFrequency'>
                                            <option value="0">全部</option>
                                            <option value="1">1秒频率</option>
                                            <option value="2">非1秒频率</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default"
                            (click)="FromCancelUpload(mulUploadModal)">取消</button>
                        <button type="button" class="btn btn-primary"
                            (click)="FromUploadSubmit(confirmMulUploadModal,mulUploadModal)">提交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <!--批量设置上传频率  end-->

    <!-- 批量设置上传频率信息确认    弹窗-->
    <div bsModal #confirmMulUploadModal="bs-modal" id="confirmMulUploadModal" class="modal fade" tabindex="-1"
        role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="cancelMulupdata(confirmMulUploadModal)"
                        aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">批量设置上传频率信息确认</h4>
                </div>
                <div class="modal-body" style="padding: 20px;">
                    <div class="row form-horizontal">
                        <div>
                            <div style="margin-bottom: 8px;font-size: 12px;">协议名称：<span
                                    style="font-size: 14px;">{{protocolVersionName}}</span></div>
                            <div style="margin-bottom: 8px;font-size: 12px;">公司名称：<span
                                    style="font-size: 14px;">{{mulUpload.selectedCompanyName}}</span></div>
                            <div style="margin-bottom: 8px;font-size: 12px;">车辆分类：<span
                                    style="font-size: 14px;">{{mulUpload.carUseTpyeText}}</span></div>
                            <!--<div style="margin-bottom: 8px;font-size: 12px;">硬件版本：<span style="font-size: 14px;">{{mulUpload.hwVersion}}</span></div>-->
                            <div style="margin-bottom: 8px;font-size: 12px;">上传频率：<span
                                    style="font-size: 14px;">{{mulUpload.time}}</span></div>
                            <div style="margin-bottom: 8px;font-size: 12px;">筛选条件：<span style="font-size: 14px;">
                                    <span *ngIf="is1sFrequency=='0'">全部</span>
                                    <span *ngIf="is1sFrequency=='1'">1秒频率</span>
                                    <span *ngIf="is1sFrequency=='2'">非1秒频率</span>
                                </span></div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default"
                        (click)="cancelUpload(confirmMulUploadModal)">取消</button>
                    <button type="button" class="btn btn-primary"
                        (click)="uploadSubmit(confirmMulUploadModal)">确认设置</button>
                </div>
            </div>
        </div>
    </div>
    <!--批量设置上传频率信息确认  end-->

    <!-- 版本升级信息    弹窗-->
    <div bsModal #versionUpdataInfoModal="bs-modal" class="modal fade" tabindex="-1" role="dialog"
        aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg" style="width:800px">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="versionUpdataInfoModal.hide()" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">版本升级信息</h4>
                </div>
                <div class="modal-body" style="padding: 20px;">
                    <div class="row form-horizontal">
                        <div class="table_scroll">
                            <div *ngIf="versionUpdataRecord.length==0">暂无数据</div>
                            <table
                                class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                                *ngIf="versionUpdataRecord.length!=0">
                                <thead>
                                    <tr>
                                        <th>用户名称</th>
                                        <th>车牌号码</th>
                                        <th>操作内容</th>
                                        <th>升级状态</th>
                                        <th>版本名称</th>
                                        <th>升级时间</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr *ngFor="let row of versionUpdataRecord">
                                        <td>{{row.userName}}</td>
                                        <td>{{row.carNumber}}</td>
                                        <td>{{row.content}}</td>
                                        <td>
                                            <span *ngIf="row.status ==='0'" style="color: #ffb752;">等待升级</span>
                                            <span *ngIf="row.status ==='2'" style="color: #4cae4c;">升级成功</span>
                                        </td>
                                        <td>{{row.version}}</td>
                                        <td>{{row.createTime}}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--版本升级信息  end-->
    <!-- 系数设置日志信息    弹窗-->
    <div bsModal #coefUpdataInfoModal="bs-modal" class="modal fade" tabindex="-1" role="dialog"
        aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-lg" style="width:800px">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="coefUpdataInfoModal.hide()" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">系数设置日志</h4>
                </div>
                <div class="modal-body" style="padding: 20px;">
                    <div class="row form-horizontal">
                        <div class="table_scroll">
                            <div *ngIf="coefUpdataRecord.length==0">暂无数据</div>
                            <table
                                class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                                *ngIf="coefUpdataRecord.length!=0">
                                <thead>
                                    <tr>
                                        <th>设备ID</th>
                                        <th>车牌号码</th>
                                        <th>公司名称</th>
                                        <th>设置状态</th>
                                        <th>下发系数</th>
                                        <th>原系数</th>
                                        <th>设置时间</th>
                                        <th>应答时间</th>
                                        <th>操作人</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr *ngFor="let row of coefUpdataRecord">
                                        <td>{{row.deviceId}}</td>
                                        <td>{{row.carNumber}}</td>
                                        <td>{{row.companyName}}</td>
                                        <td>{{row.status}}</td>
                                        <td>
                                            <span *ngIf='row.newCoef.length >0'>
                                                <span>[</span><span *ngFor="let lis of row.newCoef;let i = index;">
                                                    <span
                                                        style="font-weight: bold;">CH{{lis.index}}:</span><span>{{lis.value}}<span
                                                            *ngIf="i < row.newCoef.length-1">,</span></span>
                                                </span><span>]</span>
                                            </span>
                                        </td>
                                        <td>
                                            <span *ngIf='row.oldCoef.length >0'>
                                                <span>[</span><span *ngFor="let lis of row.oldCoef;let i = index;">
                                                    <span
                                                        style="font-weight: bold;">CH{{lis.index}}:</span><span>{{lis.value}}<span
                                                            *ngIf="i < row.oldCoef.length-1">,</span></span>
                                                </span><span>]</span>
                                            </span>
                                        </td>
                                        <td>{{row.sendTime}}</td>
                                        <td>{{row.ackTime}}</td>
                                        <td>{{row.userName}}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--系数设置日志信息  end-->
    <!-- 设备详情信息    弹窗-->
    <div bsModal #deviceDetailModal="bs-modal" id="deviceDetailModal" class="modal fade" tabindex="-1" role="dialog"
        aria-labelledby="myLargeModalLabel" aria-hidden="true" style="overflow: auto;">
        <div class="modal-dialog modal-lg" style="width: 1000px;">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" (click)="cancelDeviceDetail(deviceDetailModal)"
                        aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">设备信息
                        <span *ngIf="isShowGPSAlert" class="red  gps-alert">GPS更新异常</span>
                    </h4>
                    <button
                        *ngIf="deviceRealTimeDataInfo.markCombination&&deviceRealTimeDataInfo.markCombination.enterFactory"
                        class="btn" id="releaseBtn"
                        style="position: absolute;left: 370px;top: 8px;background-color:#d15b47;border-color: #d15b47;color: #fff;"
                        (click)="changeRelease('releaseToNo',deviceDetailModal,openModal)">解除放行</button>
                    <button
                        *ngIf="!deviceRealTimeDataInfo.markCombination||!deviceRealTimeDataInfo.markCombination.enterFactory"
                        class="btn btn-primary" id="releaseBtn" style="position: absolute;left: 370px;top: 8px;"
                        (click)="changeRelease('noToRelease',deviceDetailModal,openModal)">进厂放行</button>
                    <div class="btn-group" style="position: absolute;right: 88px;top: 8px;">
                        <button class="btn no-margin btn-default" [ngClass]="{'btn-primary':btnGroupActive == '1'}"
                            (click)="selectTimeFast('1')">一周</button>
                        <!--<button class="btn no-margin btn-default" [ngClass]="{'btn-primary':btnGroupActive == '2'}" (click)="selectTimeFast('2')">半个月</button>-->
                        <button class="btn no-margin btn-default" [ngClass]="{'btn-primary':btnGroupActive == '3'}"
                            (click)="selectTimeFast('3')">一个月</button>
                        <!--<button class="btn no-margin btn-default" [ngClass]="{'btn-primary':btnGroupActive == '4'}" (click)="selectTimeFast('4')">两个月</button>-->
                        <button class="btn no-margin btn-default" [ngClass]="{'btn-primary':btnGroupActive == '5'}"
                            (click)="selectTimeFast('5')">三个月</button>
                        <button class="btn no-margin btn-default" [ngClass]="{'btn-primary':btnGroupActive == '6'}"
                            (click)="selectTimeFast('6')">半年</button>
                        <button class="btn no-margin btn-default" [ngClass]="{'btn-primary':btnGroupActive == '7'}"
                            (click)="selectTimeFast('7')">全部</button>
                    </div>
                </div>
                <div class="modal-body" style="padding: 20px;">
                    <div class="row form-horizontal">
                        <div>
                            <div class="tabbable">
                                <ul class="nav nav-tabs" id="myTab"
                                    style="padding-left:12px;background-image: linear-gradient(#F1F5FD, #E9F0FF);">
                                    <li class="active s-lis"><a data-toggle="tab" href="#all"
                                            (click)="getTabData('');">设备信息</a></li>
                                    <li class="s-lis" (click)="getTabData('8')"><a data-toggle="tab"
                                            href="#timeline">设备事件</a></li>
                                    <li class="s-lis"><a data-toggle="tab" href="#waitRepaired"
                                            (click)="getTabData('4_1');">待维修
                                            <span class="orange">{{repairedDeviceInfo.waitFixedCount}}</span></a>
                                    </li>
                                    <li class="s-lis"><a data-toggle="tab" href="#repaired"
                                            (click)="getTabData('4_2');">已维修
                                            <span class="green">{{repairedDeviceInfo.fixedCount}}</span></a>
                                    </li>
                                    <li class="s-lis"><a data-toggle="tab" href="#question"
                                            (click)="getTabData('1');">问题记录
                                            <span class="red">{{questionRecordTotal}}</span></a>
                                    </li>
                                    <li class="s-lis"><a data-toggle="tab" href="#dataWaitFix"
                                            (click)="getTabData('2_1');">数据待修复
                                            <span class="orange">{{dataFixInfo.exceptionOrderCount}}</span></a>
                                    </li>
                                    <li class="s-lis"><a data-toggle="tab" href="#dataFix"
                                            (click)="getTabData('2');">数据修复
                                            <span class="green"
                                                *ngIf="dataFixInfo.dataFixCount == 0 || dataFixInfo.dataFixCount">{{dataFixInfo.dataFixCount
                                                + dataFixInfo.truckFixCount}}</span></a>
                                    </li>

                                    <li class="s-lis"><a data-toggle="tab" href="#alert" (click)="getTabData('3');">警报记录
                                            <span class="red"
                                                *ngIf="alertDataInfo.shutDownCount == 0 || alertDataInfo.shutDownCount">{{alertDataInfo.shutDownCount
                                                + alertDataInfo.offLineCount +
                                                alertDataInfo.shutDownExceptionCount}}</span></a>
                                    </li>
                                    <li class="s-lis"><a data-toggle="tab" href="#version"
                                            (click)="getTabData('5');">固件升级 <span class="status-purple"></span></a></li>
                                    <li class="s-lis"><a data-toggle="tab" href="#coef" (click)="getTabData('6');">系数升级
                                            <span class="status-purple"></span></a></li>
                                </ul>
                                <div class="tab-content" style="padding:0;border:none">
                                    <div id="all" class="tab-pane active">
                                        <sa-device-info [deviceId]="selectRowData.deviceId" [endTime]="endDateBtn"
                                            [startTime]="startDateBtn" [iccid]="deviceBaseInfo.iccid"></sa-device-info>
                                        <!-- <div class="device-module clearfix">
                                            <h4>基本信息</h4>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">公司名称</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.companyName||'--'}}</span></div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">车辆用途</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.userTypeName||'--'}}</span></div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">司机姓名</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.driverName||'--'}}</span></div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">车牌号码</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.carNumber||'--'}}</span></div>
                                            <div class="item-box col-xs-4 no-padding">
                                                <span class="item-key">传感器类型</span><span class="item-value" [attr.title]="">
                                                    <sa-sensor-type [sensorTypeId]="deviceBaseInfo.sensorType" type='2' [inputParam]="inputParam" [isSendRequest]='false'></sa-sensor-type>
                                                </span>
                                            </div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">司机电话</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.phone||'--'}}</span></div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">设备ID</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.deviceId||'--'}}</span></div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">产品编码</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.productNo||'--'}}</span></div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">录入人员</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.userNameForCreate||'--'}}</span>
                                            </div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">硬件版本</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.hwVersion||'--'}}</span></div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">SIM卡号</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.iccid||'--'}}</span></div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">安装时间</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.inputDate||'--'}}</span></div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">传感器通道</span><span class="item-value table_scroll" [attr.title]="">
                                                    <span class="channel-style bg-green" *ngFor="let item of deviceBaseInfo.sensorChannel">{{item}}</span>
                                                    <span *ngIf="deviceBaseInfo.sensorChannel.length == 0">--</span>
                                                </span></div>
                                            <div class="item-box col-xs-4 no-padding">
                                                <span class="item-key">当前系数</span><span class="item-value" [attr.title]="deviceBaseInfo.coef">
                                                    <span *ngIf='deviceBaseInfo.coefT.length >0'>
                                                        <span>[</span><span *ngFor="let lis of deviceBaseInfo.coefT;let i = index;">
                                                            <span style="font-weight: bold;">CH{{lis.index}}:</span><span>{{lis.value}}<span *ngIf="i < deviceBaseInfo.coefT.length-1">,</span></span>
                                                        </span><span>]</span>
                                                    </span>
                                                    <span *ngIf='deviceBaseInfo.coefT.length == 0'>--</span>
                                                </span>
                                            </div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">算法版本</span><span class="item-value" [attr.title]="deviceBaseInfo.version">{{deviceBaseInfo.version||'--'}}</span>
                                            </div>
                                        </div>
                                        <div class="device-module clearfix">
                                            <h4>问题记录<span style="font-weight: normal;">
                                                    [{{btnGroupActiveText}}]</span><span class="item-detail" (click)="jumpQuestionByHand('','','total',deviceDetailModal)">>> 详情</span></h4>
                                            <div class="item-box col-xs-4 no-padding" *ngFor="let item of questionRecordInfo"><span class="item-key">{{item.reason}}</span><span class="item-value jump-number" (click)="jumpQuestionByHand(item.exceptionType,item.programType,item.reasonCount)">{{item.reasonCount}}</span>
                                            </div>
                                        </div>
                                        <div class="device-module clearfix">
                                            <h4>数据修复<span style="font-weight: normal;"> [{{btnGroupActiveText}}]</span>
                                            </h4>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">数据修复</span><span class="item-value jump-number" (click)="jumpDataFixList('1',dataFixInfo.dataFixCount,deviceDetailModal)">{{dataFixInfo.dataFixCount}}</span>
                                            </div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">轨迹修复</span><span class="item-value jump-number" (click)="jumpDataFixList('2',dataFixInfo.truckFixCount,deviceDetailModal)">{{dataFixInfo.truckFixCount}}</span>
                                            </div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">待修复[矩阵]</span><span class="item-value jump-number" (click)="jumpDataFixList('3',dataFixInfo.exceptionOrderCount,deviceDetailModal)">{{dataFixInfo.exceptionOrderCount}}</span>
                                            </div>
                                        </div>
                                        <div class="device-module clearfix">
                                            <h4>警报记录<span style="font-weight: normal;">
                                                    [{{btnGroupActiveText}}]</span><span class="item-detail" (click)="jumpAlertDataList('','total',deviceDetailModal)">>> 详情</span></h4>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">断电警报</span><span class="item-value jump-number" (click)="jumpAlertDataList('2',alertDataInfo.shutDownCount,deviceDetailModal)">{{alertDataInfo.shutDownCount}}</span>
                                            </div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">离线警报</span><span class="item-value jump-number" (click)="jumpAlertDataList('1',alertDataInfo.offLineCount,deviceDetailModal)">{{alertDataInfo.offLineCount}}</span>
                                            </div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">异常断电警报</span><span class="item-value jump-number" (click)="jumpAlertDataList('3',alertDataInfo.shutDownExceptionCount,deviceDetailModal)">{{alertDataInfo.shutDownExceptionCount}}</span>
                                            </div>
                                        </div>
                                        <div class="device-module clearfix">
                                            <h4>维修记录<span style="font-weight: normal;"> [{{btnGroupActiveText}}]</span>
                                            </h4>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">待维修记录</span><span class="item-value jump-number" (click)="jumpRepairedDeviceList('0','1',repairedDeviceInfo.waitFixedCount,deviceDetailModal)">{{repairedDeviceInfo.waitFixedCount}}</span>
                                            </div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">已维修记录</span><span class="item-value jump-number" (click)="jumpRepairedDeviceList('1','2',repairedDeviceInfo.fixedCount,deviceDetailModal)">{{repairedDeviceInfo.fixedCount}}</span>
                                            </div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">最新维修时间</span><span class="item-value">{{repairedDeviceInfo.lastRepariedTime||'--'}}</span>
                                            </div>
                                        </div>
                                        <div class="device-module clearfix">
                                            <h4>设备状态</h4>
                                            <div class="item-box col-xs-4 no-padding">
                                                <span class="item-key">在线状态</span><span class="item-value">
                                                    <div *ngIf="deviceRealTimeDataInfo.isEnterFactory == false">
                                                        <span *ngIf="deviceRealTimeDataInfo.markCombination.fakeOnline === 1" class="red">在线</span>
                                                    </div>
                                                    <div *ngIf="deviceRealTimeDataInfo.isEnterFactory == true">
                                                        <span *ngIf="deviceRealTimeDataInfo.runStatus == '1'" class="green">在线</span>
                                                        <span class="red" *ngIf="deviceRealTimeDataInfo.runStatus == '0'">离线</span>
                                                        <span *ngIf="!deviceRealTimeDataInfo.runStatus">--</span>
                                                    </div>
                                                </span>
                                            </div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">设备电压</span><span class="item-value">{{deviceRealTimeDataInfo.voltage||'--'}}</span>
                                            </div>
                                            <div class="item-box col-xs-4 no-padding">
                                                <span class="item-key">警报类型</span><span class="item-value">
                                                    <span *ngIf="deviceRealTimeDataInfo.alarmType == '0'||!deviceRealTimeDataInfo.alarmType">无警报</span><span *ngIf="deviceRealTimeDataInfo.alarmType == '2'" class="red">
                                                        离线警报</span><span *ngIf="deviceRealTimeDataInfo.alarmType == '1'" class="red">断电警报
                                                    </span>
                                                </span>
                                            </div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">更新时间</span><span class="item-value">{{deviceRealTimeDataInfo.updateTime||'--'}}</span>
                                            </div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">采集时间</span><span class="item-value">{{deviceRealTimeDataInfo.voltageTime||'--'}}</span>
                                            </div>
                                            <div class="item-box col-xs-4 no-padding"><span class="item-key">警报时间</span><span class="item-value"><span class="red" *ngIf="deviceRealTimeDataInfo.alarmTime">{{deviceRealTimeDataInfo.alarmTime}}</span><span *ngIf="!deviceRealTimeDataInfo.alarmTime">--</span></span></div>

                                        </div>
                                        <span *ngIf="isShowOfflineAlert" class="red offline-alert left">异常离线[磅单数:{{weightCount}}][离线时长:{{offlineDiffTime}}]</span> -->
                                    </div>
                                    <div id="timeline" class="tab-pane">
                                        <div class="clearfix">
                                            <div class="device-module clearfix" style="margin-top: 12px;"
                                                *ngIf='deviceBaseInfo'>
                                                <h4>基本信息</h4>
                                                <div class="item-box self-xs-25 no-padding"><span
                                                        class="item-key">车牌号码</span><span class="item-value"
                                                        [attr.title]="">{{deviceBaseInfo.carNumber||'--'}}</span><span
                                                        *ngIf="deviceBaseInfo.deviceId">[{{deviceBaseInfo.deviceId}}]</span>
                                                </div>
                                                <div class="item-box self-xs-25 no-padding"><span
                                                        class="item-key">公司名称</span><span class="item-value"
                                                        [attr.title]="">{{deviceBaseInfo.companyName||'--'}}</span>
                                                </div>
                                                <div class="item-box self-xs-25 no-padding"><span
                                                        class="item-key">安装时间</span><span class="item-value"
                                                        [attr.title]="">{{deviceBaseInfo.inputDate||'--'}}</span></div>
                                                <div class="item-box self-xs-25 no-padding"><span
                                                        class="item-key">录入人员</span><span class="item-value"
                                                        [attr.title]="">{{deviceBaseInfo.userNameForCreate||'--'}}</span>
                                                </div>
                                                <div class="item-box self-xs-25 no-padding"><span
                                                        class="item-key">已安装[据今]</span><span class="item-value"
                                                        [attr.title]="">{{deviceBaseInfo.installTime||'--'}}</span>
                                                </div>
                                                <div class="item-box self-xs-25 no-padding"><span
                                                        class="item-key">车辆用途</span><span class="item-value"
                                                        [attr.title]="">{{deviceBaseInfo.userTypeName||'--'}}</span>
                                                </div>
                                                <div class="item-box self-xs-25 no-padding"><span
                                                        class="item-key">载重更新</span><span class="item-value"
                                                        [attr.title]="">{{otherData.carUploadDate||'--'}}</span></div>
                                                <div class="item-box self-xs-25 no-padding">
                                                    <span class="item-key">传感器</span><span class="item-value"
                                                        [attr.title]="">
                                                        <sa-sensor-type [sensorTypeId]="deviceBaseInfo.sensorType"
                                                            type='2' [inputParam]="inputParam"
                                                            [isSendRequest]='false'></sa-sensor-type>
                                                    </span>
                                                </div>
                                                <div class="item-box self-xs-25 no-padding"><span
                                                        class="item-key">车辆状态</span><span class="item-value"
                                                        [attr.title]="">
                                                        <div *ngIf="deviceRealTimeDataInfo.isEnterFactory == false">
                                                            <span
                                                                *ngIf="deviceRealTimeDataInfo.markCombination.fakeOnline === 1"
                                                                class="red">在线</span>
                                                        </div>
                                                        <div *ngIf="deviceRealTimeDataInfo.isEnterFactory == true">
                                                            <span class="red"
                                                                *ngIf="deviceRealTimeDataInfo.runStatus=='0'">离线</span>
                                                            <span class="green"
                                                                *ngIf="deviceRealTimeDataInfo.runStatus!=='0'">在线</span>
                                                        </div>
                                                    </span></div>
                                                <div class="item-box self-xs-25 no-padding"><span
                                                        class="item-key">GPS更新</span><span class="item-value"
                                                        [attr.title]="">{{otherData.gpsUploadDate||'--'}}</span></div>

                                                <div class="item-box self-xs-50 no-padding">
                                                    <span class="item-key">算法版本</span>
                                                    <span class="item-value" [attr.title]="deviceBaseInfo.version"
                                                        style="max-width:100%">{{deviceBaseInfo.version||'--'}}</span>
                                                </div>
                                                <div class="item-box self-xs-25 no-padding"
                                                    style="white-space: nowrap;">
                                                    <span class="item-key">当前系数</span>
                                                    <span class="item-value" [attr.title]="deviceBaseInfo.coef"
                                                        style="max-width:calc(100% - 84px)">
                                                        <span *ngIf='deviceBaseInfo.coefT.length >0'>
                                                            <span>[</span><span
                                                                *ngFor="let lis of deviceBaseInfo.coefT;let i = index;">
                                                                <span
                                                                    style="font-weight: bold;">CH{{lis.index}}:</span><span>{{lis.value}}<span
                                                                        *ngIf="i < deviceBaseInfo.coefT.length-1">,</span></span>
                                                            </span><span>]</span>
                                                        </span>
                                                        <span *ngIf='deviceBaseInfo.coefT.length == 0'>--</span>
                                                    </span>
                                                </div>
                                                <div class="item-box self-xs-25 no-padding"><span
                                                        class="item-key">传感器通道</span><span
                                                        class="item-value table_scroll" [attr.title]="">
                                                        <span class="channel-style bg-green"
                                                            *ngFor="let item of deviceBaseInfo.sensorChannel">{{item}}</span>
                                                        <span *ngIf="deviceBaseInfo.sensorChannel.length == 0">--</span>
                                                    </span></div>
                                            </div>
                                        </div>
                                        <div class="device-module clearfix" style="margin-top: 12px">
                                            <h4>
                                                主机生命周期
                                                <span *ngIf="hostTableData.length"
                                                    [attr.title]="'当前为' + hostTableData.length + '号主机，已更换' + (hostTableData.length -1) + '次主机'">{{deviceBaseInfo.carNumber}}[{{hostTableData.length}}]</span>
                                            </h4>
                                            <div class="table_scroll first_row_style">
                                                <table
                                                    class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                                                    style="margin-bottom: 0 !important;border-bottom: 0 !important;">
                                                    <thead>
                                                        <tr>
                                                            <th class="width50">序号</th>
                                                            <th class="width60">状态</th>
                                                            <th class="width100">车牌号码</th>
                                                            <th class="width100">设备ID</th>
                                                            <th class="width90">物料名称</th>
                                                            <th class="width120">产品编号</th>
                                                            <th class="width120">原设备ID</th>
                                                            <th class="width120">工作时长</th>
                                                            <th style="text-align:center">安装时间</th>
                                                        </tr>
                                                    </thead>
                                                </table>
                                            </div>
                                            <div [ngClass]="{'host_table': hostTableData.length > 3 }"
                                                class="table_scroll first_row_style">
                                                <table
                                                    class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                                                    style="border-top: 0 !important;">
                                                    <tbody *ngIf="hostTableData.length > 0">
                                                        <tr *ngFor="let row of hostTableData; let i = index">
                                                            <td class="width50">{{ row.number }}</td>
                                                            <td class="width60">
                                                                <span *ngIf="row.state === 0">拆卸</span>
                                                                <span *ngIf="row.state === 1">在用</span>
                                                            </td>
                                                            <td class="width100">{{ row.carNumber }}</td>
                                                            <td class="width100">{{ row.deviceId }}</td>
                                                            <td class="width90">{{ row.materielName }}</td>
                                                            <td class="width120">{{ row.materielNumber }}</td>
                                                            <td class="width120">{{ row.lastDeviceId }}</td>
                                                            <td class="width120">{{ row.workingTimeStr }}</td>
                                                            <td style="text-align:center">{{ row.installTime }}</td>
                                                        </tr>
                                                    </tbody>
                                                    <tbody *ngIf="hostTableData.length === 0">
                                                        <div style="text-align: center;height: 50px;line-height: 50px;">
                                                            暂无数据</div>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>
                                        <div class="device-module clearfix" style="margin-top: 12px">
                                            <h4>
                                                传感器生命周期
                                                <span *ngIf="sensorListData.length"
                                                    [attr.title]="'当前设备安装' + sensorCount + '个传感器'">{{deviceBaseInfo.carNumber}}[{{sensorCount}}]</span>
                                            </h4>
                                            <div class="table_scroll first_row_style">
                                                <table
                                                    class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                                                    style="margin-bottom: 0 !important;border-bottom: 0 !important;">
                                                    <thead>
                                                        <tr>
                                                            <th class="width80">产品编号</th>
                                                            <th class="width80">序号</th>
                                                            <th class="width80">状态</th>
                                                            <th class="width100">车牌号码</th>
                                                            <th class="width100">设备ID</th>
                                                            <th class="width200">物料名称</th>
                                                            <th class="width120">工作时长</th>
                                                            <th style="text-align:center">安装时间</th>
                                                        </tr>
                                                    </thead>
                                                </table>
                                            </div>
                                            <div [ngClass]="{'sensor_table': sensorListData.length > 5 }"
                                                class="table_scroll first_row_style">
                                                <table
                                                    class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                                                    style="border-top: 0 !important;">
                                                    <tbody *ngIf="sensorListData.length > 0">
                                                        <tr *ngFor="let row of sensorListData; let i = index">
                                                            <td class="width80" [rowSpan]="row.rowSpan"
                                                                *ngIf="row.secondIndex == 0">
                                                                <span class="channel-style bg-green">
                                                                    {{ row.materielNumber }}
                                                                </span>
                                                            </td>
                                                            <td class="width80">{{ row.number }}</td>
                                                            <td class="width80">
                                                                <span *ngIf="row.state === 0">拆卸</span>
                                                                <span *ngIf="row.state === 1">在用</span>
                                                            </td>
                                                            <td class="width100">{{ row.carNumber }}</td>
                                                            <td class="width100">{{ row.deviceId }}</td>
                                                            <td class="width200">{{ row.materielName }}</td>
                                                            <td class="width120">{{ row.workingTimeStr }}</td>
                                                            <td style="text-align:center">{{ row.installTime }}</td>
                                                        </tr>
                                                    </tbody>
                                                    <tbody *ngIf="sensorListData.length === 0">
                                                        <div style="text-align: center;height: 50px;line-height: 50px;">
                                                            暂无数据</div>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                    <div id="question" class="tab-pane">
                                        <div class="table_scroll">
                                            <table
                                                class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                                                <thead>
                                                    <tr>
                                                        <th>录入人员</th>
                                                        <th>录入时间</th>
                                                        <th>设备ID</th>
                                                        <th>车牌号</th>
                                                        <th>版本</th>
                                                        <th>问题分类</th>
                                                        <th>现象分类</th>
                                                        <th>问题原因</th>
                                                        <th>车辆用途</th>
                                                        <th>用途分类</th>
                                                        <th>开始时间</th>
                                                        <th>结束时间</th>
                                                        <th>系数</th>
                                                        <th>状态</th>
                                                        <th>审核人员</th>
                                                        <th>审核时间</th>
                                                        <th>备注</th>

                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <tr *ngFor="let row of tableDataTab1; let i = index"
                                                        [attr.data-index]="i">
                                                        <td>{{row.createUserName}}</td>
                                                        <td>{{row.createDate}}</td>
                                                        <td>{{row.deviceId}}</td>
                                                        <td>{{row.carNumber}}</td>
                                                        <td>{{row.version}}</td>
                                                        <td>{{row.exceptionType}}</td>
                                                        <td>{{row.programType}}</td>
                                                        <td>{{row.reason}}</td>
                                                        <td>{{row.useTypeL1}}</td>
                                                        <td>{{row.useTypeL2}}</td>
                                                        <td>{{row.startDate}}</td>
                                                        <td>{{row.endDate}}</td>
                                                        <td>
                                                            <span *ngIf='row.coef.length >0'>
                                                                <span>[</span><span
                                                                    *ngFor="let lis of row.coef;let i = index;">
                                                                    <span
                                                                        style="font-weight: bold;">CH{{lis.index}}:</span><span>{{lis.value}}<span
                                                                            *ngIf="i < row.coef.length-1">,</span></span>
                                                                </span><span>]</span>
                                                            </span>
                                                        </td>
                                                        <td>
                                                            <span *ngIf='row.isCheck=="1"' class="green">审核通过</span>
                                                            <span *ngIf='row.isCheck=="0"' class="orange">未审核</span>
                                                        </td>
                                                        <td>{{row.userNameForCheck}}</td>
                                                        <td>{{row.checkDate}}</td>
                                                        <td>{{row.remark}}</td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                        <div class="table-fix clearfix">
                                            <paginator [totalRecords]="totalCountTab" [rows]="pageSizeTab"
                                                [currentPage]="curPageTab - 1" (onPageChange)="paginateTab($event)">
                                            </paginator>
                                            <button type="button" class="btn default refresh_btn"
                                                (click)="refreshTab()"><i class="fa fa-refresh"></i></button>
                                        </div>
                                    </div>
                                    <div id="dataFix" class="tab-pane">
                                        <div class="table_scroll">
                                            <table
                                                class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                                                <thead>
                                                    <tr>
                                                        <th>用户名</th>
                                                        <th>记录类型</th>
                                                        <th>车牌号码</th>
                                                        <th>记录时间</th>
                                                        <th>内容</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <tr *ngFor="let row of tableDataTab2; let i = index"
                                                        [attr.data-index]="i">
                                                        <td>{{row.userName}}</td>
                                                        <td>
                                                            <span *ngIf="row.operation=='1'">数据修复</span>
                                                            <span *ngIf="row.operation=='2'">轨迹修复</span>
                                                        </td>
                                                        <td>{{row.carNumber}}</td>
                                                        <td>{{row.createTime}}</td>
                                                        <td>{{row.content}}</td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                        <div class="table-fix clearfix">
                                            <paginator [totalRecords]="totalCountTab" [rows]="pageSizeTab"
                                                [currentPage]="curPageTab - 1" (onPageChange)="paginateTab($event)">
                                            </paginator>
                                            <button type="button" class="btn default refresh_btn"
                                                (click)="refreshTab()"><i class="fa fa-refresh"></i></button>
                                        </div>
                                    </div>

                                    <div id="dataWaitFix" class="tab-pane">
                                        <div class="table_scroll">
                                            <table
                                                class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                                                <thead>
                                                    <tr>
                                                        <th>订单编号</th>
                                                        <th>车牌号码</th>
                                                        <th>设备ID</th>
                                                        <th>空车过磅时间</th>
                                                        <th>重车过磅时间</th>
                                                        <th>净重</th>
                                                        <th>订单类型</th>
                                                        <th>开始卸货时间</th>
                                                        <th>卸货结束时间</th>
                                                        <th>异常描述</th>
                                                        <th>推送时间</th>
                                                        <th>推送状态</th>
                                                        <th>处理人</th>
                                                        <th>状态</th>
                                                        <th>录入时间</th>
                                                        <th>更新时间</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <tr *ngFor="let row of tableDataTab2_1; let i = index"
                                                        [attr.data-index]="i">
                                                        <td>{{row.taskId}}</td>
                                                        <td>{{row.carNumber}}</td>
                                                        <td>{{row.deviceId}}</td>
                                                        <td>{{row.emptyLoadDate}}</td>
                                                        <td>{{row.fullLoadDate}}</td>
                                                        <td>{{row.weight}}</td>
                                                        <td>
                                                            <span *ngIf="row.type == '1'">水泥订单</span>
                                                            <span *ngIf="row.type == '2'">物资订单</span>
                                                        </td>
                                                        <td>{{row.unloadStartDate}}</td>
                                                        <td>{{row.unloadEndDate}}</td>
                                                        <td>{{row.remark}}</td>
                                                        <td>{{row.pushDate}}</td>
                                                        <td>
                                                            <span *ngIf="row.isPush=='0'" class="orange">未推送</span>
                                                            <span *ngIf="row.isPush=='1'" class="green">已推送</span>
                                                        </td>
                                                        <td>{{row.userName}}</td>
                                                        <td>
                                                            <span *ngIf="row.status=='0'" class="orange">待处理</span>
                                                            <span *ngIf="row.status=='1'" class="green">已处理</span>

                                                        </td>
                                                        <td>{{row.createTime}}</td>
                                                        <td>{{row.uploadTime}}</td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                        <div class="table-fix clearfix">
                                            <paginator [totalRecords]="totalCountTab" [rows]="pageSizeTab"
                                                [currentPage]="curPageTab - 1" (onPageChange)="paginateTab($event)">
                                            </paginator>
                                            <button type="button" class="btn default refresh_btn"
                                                (click)="refreshTab()"><i class="fa fa-refresh"></i></button>
                                        </div>
                                    </div>

                                    <div id="alert" class="tab-pane">
                                        <div class="table_scroll">
                                            <table
                                                class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                                                <thead>
                                                    <tr>
                                                        <th>设备ID</th>
                                                        <th>车牌号</th>
                                                        <th>所属公司</th>
                                                        <th>异常信息</th>
                                                        <th>关机时长</th>
                                                        <th>关机时间</th>
                                                        <th>开机时间</th>
                                                        <th>地址</th>
                                                        <th>状态</th>
                                                        <th>处理意见</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <tr *ngFor="let row of tableDataTab3; let i = index"
                                                        [attr.data-index]="i">
                                                        <td>{{row.deviceId}}</td>
                                                        <td>{{row.carNumber}}</td>
                                                        <td>{{row.companyName}}</td>
                                                        <td>{{row.message}}</td>
                                                        <td>
                                                            <span *ngIf="row.type == 1">
                                                                <span
                                                                    *ngIf="!row.onTime||row.totalSecond =='0秒'">离线中</span>
                                                                <span
                                                                    *ngIf="row.totalSecond&&row.onTime">{{row.totalSecond}}</span>
                                                            </span>
                                                            <span *ngIf="row.type == 2">
                                                                <span
                                                                    *ngIf="!row.onTime||row.totalSecond =='0秒'">断电中</span>
                                                                <span
                                                                    *ngIf="row.totalSecond&&row.onTime">{{row.totalSecond}}</span>
                                                            </span>
                                                            <span *ngIf="row.type == 3">
                                                                <span
                                                                    *ngIf="!row.onTime||row.totalSecond =='0秒'">无</span>
                                                                <span
                                                                    *ngIf="row.onTime&&row.totalSecond">{{row.onTime}}</span>
                                                            </span>
                                                        </td>
                                                        <td>{{row.offTime}}</td>
                                                        <td>
                                                            <span *ngIf="row.type == 1">
                                                                <span
                                                                    *ngIf="!row.onTime||row.totalSecond =='0秒'">离线中</span>
                                                                <span
                                                                    *ngIf="row.onTime&&row.totalSecond">{{row.onTime}}</span>
                                                            </span>
                                                            <span *ngIf="row.type == 2">
                                                                <span
                                                                    *ngIf="!row.onTime||row.totalSecond =='0秒'">断电中</span>
                                                                <span
                                                                    *ngIf="row.onTime&&row.totalSecond">{{row.onTime}}</span>
                                                            </span>
                                                            <span *ngIf="row.type == 3">
                                                                <span
                                                                    *ngIf="!row.onTime||row.totalSecond =='0秒'">无</span>
                                                                <span
                                                                    *ngIf="row.onTime&&row.totalSecond">{{row.onTime}}</span>
                                                            </span>

                                                        </td>
                                                        <td>{{row.address}}</td>
                                                        <td>
                                                            <span *ngIf="row.handleStatus == 0"
                                                                class="orange">未处理</span>
                                                            <span *ngIf="row.handleStatus == 1" class="green">已处理</span>
                                                        </td>
                                                        <td>{{row.addvice}}</td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                        <div class="table-fix clearfix">
                                            <paginator [totalRecords]="totalCountTab" [rows]="pageSizeTab"
                                                [currentPage]="curPageTab - 1" (onPageChange)="paginateTab($event)">
                                            </paginator>
                                            <button type="button" class="btn default refresh_btn"
                                                (click)="refreshTab()"><i class="fa fa-refresh"></i></button>
                                        </div>
                                    </div>
                                    <div id="waitRepaired" class="tab-pane">
                                        <div class="table_scroll">
                                            <table
                                                class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                                                <thead>
                                                    <tr>
                                                        <th>操作</th>
                                                        <th>进厂限制</th>
                                                        <th>录入人员</th>
                                                        <th>录入时间</th>
                                                        <th>故障类型</th>
                                                        <th>故障现象</th>
                                                        <th>故障时间</th>
                                                        <th>维修指导</th>
                                                        <!-- <th>故障来源</th>
                                                        <th>备注</th> -->
                                                        <th>最后编辑</th>
                                                        <th>故障状态</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <tr *ngFor="let row of tableDataTab4_1">
                                                        <td>
                                                            <button type="button"
                                                                (click)="deleteRepaireRow(row)">删除</button>
                                                            <button type="button"
                                                                (click)="limitAutoReset(limitModal,row)">限制</button>
                                                        </td>
                                                        <td>
                                                            <span *ngIf="row.isPush == '1'">限制</span>
                                                            <span
                                                                *ngIf="row.isPush == '0' && !row.restrictTime">不限制</span>
                                                            <span *ngIf="row.restrictTime">
                                                                {{ row.restrictTime }}后开始限制
                                                                <button type="button" (click)="cancelRestrict(row)"
                                                                    *ngIf="row.restrictTimeFlag">
                                                                    取消限制
                                                                </button>
                                                            </span>
                                                            <!-- <span *ngIf="row.isPush=='1'">限制</span>
                                                            <span *ngIf="row.isPush=='0'">不限制</span> -->
                                                        </td>
                                                        <td>{{row.creater}}</td>
                                                        <td>{{row.createTime}}</td>
                                                        <td>{{row.faultTypeName}}</td>
                                                        <td>{{row.faultPhenomenon}}</td>
                                                        <td>{{row.faultTime}}</td>
                                                        <td>{{row.repairedGuide}}</td>
                                                        <!-- <td>{{row.updateSource}}</td>
                                                        <td>{{row.remark}}</td> -->
                                                        <td>{{row.lastUpdateTime}}</td>
                                                        <td>
                                                            <span *ngIf='row.repairedStatus=="0"'
                                                                class="orange">待维修</span>
                                                            <span *ngIf='row.repairedStatus=="1"'
                                                                class="green">已维修</span>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                        <div class="table-fix clearfix">
                                            <paginator [totalRecords]="totalCountTab" [rows]="pageSizeTab"
                                                [currentPage]="curPageTab - 1" (onPageChange)="paginateTab($event)">
                                            </paginator>
                                            <button type="button" class="btn default refresh_btn"
                                                (click)="refreshTab()"><i class="fa fa-refresh"></i></button>
                                        </div>
                                    </div>
                                    <div id="repaired" class="tab-pane">
                                        <div class="table_scroll">
                                            <table
                                                class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                                                <thead>
                                                    <tr>
                                                        <th>设备ID</th>
                                                        <th>车牌号码</th>
                                                        <th>用途分类</th>
                                                        <th>公司名称</th>
                                                        <th>维修人员</th>
                                                        <th>维修订单创建时间</th>
                                                        <th>维修时间</th>
                                                        <th>故障现象</th>
                                                        <th>维修内容</th>
                                                        <th>维修细分</th>
                                                        <th>维修编号</th>
                                                        <th>维修费用[元]</th>
                                                        <th>支付状态</th>
                                                        <th>维修状态</th>
                                                        <th>是否审核</th>
                                                        <th>审核人员</th>
                                                        <th>审核时间</th>
                                                        <th>审核意见</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <tr *ngFor="let row of tableDataTab4_2">
                                                        <td>{{row.deviceId}}</td>
                                                        <td>{{row.carNumber}}</td>
                                                        <td>{{row.useTypeL2}}</td>
                                                        <td>{{row.companyName}}</td>
                                                        <td>{{row.repairedUserName}}</td>
                                                        <td>{{row.repairOrderCreateTime}}</td>
                                                        <td>{{row.repairedTime}}</td>
                                                        <td>{{row.faultPhenomenonList}}</td>
                                                        <td>{{row.repairContentList}}</td>
                                                        <td>{{row.repairSubdivideList}}</td>
                                                        <td>{{row.repairedNumber}}</td>
                                                        <td>
                                                            <span>{{row.price/100}}</span>
                                                        </td>
                                                        <td>
                                                            <span *ngIf="row.payStatus == 1">待支付</span>
                                                            <span *ngIf="row.payStatus == 2">已支付</span>
                                                            <span *ngIf="row.payStatus == 3">订单取消</span>
                                                        </td>
                                                        <td>
                                                            <span class="green">已维修</span>
                                                        </td>
                                                        <td>
                                                            <span *ngIf="row.auditStatus === 0"
                                                                class="orange">未审核</span>
                                                            <span *ngIf="row.auditStatus === 1"
                                                                class="green">审核通过</span>
                                                            <span *ngIf="row.auditStatus === 2" class="red">审核不通过</span>
                                                        </td>
                                                        <td>{{row.auditUser}}</td>
                                                        <td>{{row.auditDate}}</td>
                                                        <td>{{row.describe}}</td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                        <div class="table-fix clearfix">
                                            <paginator [totalRecords]="totalCountTab" [rows]="pageSizeTab"
                                                [currentPage]="curPageTab - 1" (onPageChange)="paginateTab($event)">
                                            </paginator>
                                            <button type="button" class="btn default refresh_btn"
                                                (click)="refreshTab()"><i class="fa fa-refresh"></i></button>
                                        </div>
                                    </div>
                                    <div id="version" class="tab-pane">
                                        <div class="table_scroll">
                                            <table
                                                class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                                                <thead>
                                                    <tr>
                                                        <th>用户名称</th>
                                                        <th>设备ID</th>
                                                        <th>车牌号</th>
                                                        <th>操作内容</th>
                                                        <th>升级状态</th>
                                                        <th>版本名称</th>
                                                        <th>版本号</th>
                                                        <th>前版本号</th>
                                                        <th>时间</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <tr *ngFor="let row of tableDataTab5">
                                                        <td>{{row.userName}}</td>
                                                        <td>{{row.deviceId}}</td>
                                                        <td>{{row.carNumber}}</td>
                                                        <td>{{row.content}}</td>
                                                        <td>
                                                            <span *ngIf="row.status ==='0'"
                                                                style="color: #ffb752;">等待升级</span>
                                                            <span *ngIf="row.status ==='2'"
                                                                style="color: #4cae4c;">升级成功</span>
                                                        </td>
                                                        <td>{{row.binName}}</td>
                                                        <td>{{row.version}}</td>
                                                        <td>{{row.prevVersion}}</td>
                                                        <td>{{row.createTime}}</td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                        <div class="table-fix clearfix">
                                            <paginator [totalRecords]="totalCountTab" [rows]="pageSizeTab"
                                                [currentPage]="curPageTab - 1" (onPageChange)="paginateTab($event)">
                                            </paginator>
                                            <button type="button" class="btn default refresh_btn"
                                                (click)="refreshTab()"><i class="fa fa-refresh"></i></button>
                                        </div>
                                    </div>
                                    <div id="coef" class="tab-pane">
                                        <div class="table_scroll">
                                            <table
                                                class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                                                <thead>
                                                    <tr>
                                                        <th>操作人</th>
                                                        <th>设置时间</th>
                                                        <th>应答时间</th>
                                                        <th>设置状态</th>
                                                        <th>下发系数</th>
                                                        <th>前系数</th>
                                                        <th>创建时间</th>
                                                        <th>更新时间</th>
                                                        <th>设备ID</th>
                                                        <th>车牌号码</th>
                                                        <th>公司名称</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <tr *ngFor="let row of tableDataTab6">
                                                        <td>{{row.userName}}</td>
                                                        <td>{{row.sendTime}}</td>
                                                        <td>{{row.ackTime}}</td>
                                                        <td>
                                                            <!-- 设置状态 type 	0：已提交	1：待下发	2：已下发	3：设置成功 -->
                                                            <span
                                                                [ngClass]="{'orange':row.type == 1,'grey':row.type == 2,'green':row.type == 3}">{{row.status}}</span>
                                                        </td>
                                                        <td>
                                                            <span *ngIf='row.newCoef.length >0'>
                                                                <span>[</span><span
                                                                    *ngFor="let lis of row.newCoef;let i = index;">
                                                                    <span
                                                                        style="font-weight: bold;">CH{{lis.index}}:</span><span>{{lis.value}}<span
                                                                            *ngIf="i < row.newCoef.length-1">,</span></span>
                                                                </span><span>]</span>
                                                            </span>
                                                        </td>
                                                        <td>
                                                            <span *ngIf='row.oldCoef.length >0'>
                                                                <span>[</span><span
                                                                    *ngFor="let lis of row.oldCoef;let i = index;">
                                                                    <span
                                                                        style="font-weight: bold;">CH{{lis.index}}:</span><span>{{lis.value}}<span
                                                                            *ngIf="i < row.oldCoef.length-1">,</span></span>
                                                                </span><span>]</span>
                                                            </span>
                                                        </td>
                                                        <td>{{row.createTime}}</td>
                                                        <td>{{row.updateTime}}</td>
                                                        <td>{{row.deviceId}}</td>
                                                        <td>{{row.carNumber}}</td>
                                                        <td>{{row.companyName}}</td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                        <div class="table-fix clearfix">
                                            <paginator [totalRecords]="totalCountTab" [rows]="pageSizeTab"
                                                [currentPage]="curPageTab - 1" (onPageChange)="paginateTab($event)">
                                            </paginator>
                                            <button type="button" class="btn default refresh_btn"
                                                (click)="refreshTab()"><i class="fa fa-refresh"></i></button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--<div class="modal-footer">
					<button type="button" class="btn btn-default" (click)="cancelDeviceDetail()">取消</button>
					<button type="button" class="btn btn-primary" (click)="uploadSubmit()">确认设置</button>
				</div>-->
            </div>
        </div>
    </div>
    <!--设备详情信息  end-->
</div>
<!-- 新的设备升级    弹窗-->
<div bsModal #newUpdataModal="bs-modal" id="newUpdataModal" class="modal fade" tabindex="-1" role="dialog"
    aria-labelledby="myLargeModalLabel" aria-hidden="true" style="overflow: auto;">
    <div class="modal-dialog modal-lg" style="width: 1000px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" (click)="cancelUpdataDevice(newUpdataModal)"
                    aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">设备升级</h4>
            </div>
            <div class="modal-body" style="padding: 15px;">
                <div class="page-header clearfix s_table_opreation"
                    style="margin-top: 0px;margin-bottom: 15px;padding-bottom: 15px;">
                    <div class="left page-header-btn">
                        <div class="top_module top_module_box">
                            <span class="top_module_label module_text">协议版本</span>
                            <select name="" class="top_module_select" [(ngModel)]="newProtoVersion">
                                <option value="">全部</option>
                                <option value="1">第一代</option>
                                <option value="2">第二代</option>
                                <option value="3">808协议</option>
                            </select>
                        </div>
                        <!-- 公司的模块插入 -->
                        <sa-company-tree-car #ctcComponent companyTreeId="company3" wrapId="newUpdataModal"
                            tcarTypeSelect2="cartypeSelect2" [isShowCarSort]="true" [isShowCarNum]="false"
                            [isLinkCompanyAndCar]='false'
                            (companySelected)="firmcompanySelected($event)"></sa-company-tree-car>
                        <div class="top_module top_module_box">
                            <span class="top_module_label module_text">硬件版本</span>
                            <select name="" class="top_module_select" [(ngModel)]="hardwareVersion">
                                <option value="">全部</option>
                                <option value="4">V4</option>
                                <option value="5">V5</option>
                                <option value="7">V7</option>
                                <option value="8">V8</option>
                                <option value="9">V9</option>
                                <option value="10">V10</option>
                            </select>
                        </div>
                        <div class="top_module cancle">
                            <span class="module_text">版本号</span>
                            <input type="text" id="deviceVersionSearch"
                                class="module_inp top_module_select ng-pristine ng-valid ng-touched" placeholder="版本号"
                                [(ngModel)]='versionNum' style="min-width: 418px;">
                            <div class="s_del_icon" (click)='delKey("versionNum")'>x</div>
                        </div>

                        <button type="button" class="btn btn-primary" (click)="firmwareSearch()">查询</button>

                    </div>
                </div>
                <div class="table_scroll">
                    <table
                        class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                        <thead>
                            <tr>
                                <th>单选框</th>
                                <th>公司名称</th>
                                <th>车辆分类</th>
                                <th>版本号</th>
                                <th>硬件版本</th>
                                <th>描述</th>
                                <th>包个数</th>
                                <th>时间</th>
                            </tr>
                        </thead>
                        <tbody>

                            <tr *ngFor="let row of firmTableData; let i = index" [attr.data-index]="i"
                                [ngClass]='{selected: row.isChecked }' (click)="firmRowSelected(row,$event,i)">
                                <td class="checkbox-td">
                                    <div class="checkbox" style="margin:0;left: 5px;text-align: center;">
                                        <label class="checkbox-label">
                                            <input type="checkbox" class="checkbox style-0" [(ngModel)]="row.isChecked"
                                                (click)='firmSelected(row,$event,i)'>
                                            <span class="checkbox-flag"></span>
                                        </label>
                                    </div>
                                </td>
                                <td>{{row.companyName}}</td>
                                <td>{{row.useTypeL2}}</td>
                                <td>{{row.version}}</td>
                                <td>
                                    <span *ngIf="row.protocolVersion == 1">第一代</span>
                                    <span *ngIf="row.protocolVersion == 2">第二代</span>
                                    <span *ngIf="row.protocolVersion == 3">808协议</span>
                                </td>
                                <td>{{row.description}}</td>
                                <td>{{row.packetTotal}}</td>
                                <td>{{row.uploadDate}}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class="table-fix clearfix">
                    <paginator [totalRecords]="firmtotalCount" [rows]="firmPageSize" [currentPage]="firmCurPage- 1"
                        (onPageChange)="firmPaginate($event)">
                    </paginator>
                    <button type="button" class="btn default refresh_btn" (click)="firmRefresh()"><i
                            class="fa fa-refresh"></i></button>
                </div>
            </div>
            <div class="modal-footer" style="text-align: center;">
                <!-- <span class="note left">注：批量升级只升级在线车辆</span> -->
                <button type="button" class="btn btn-default" (click)="cancelUpdataDevice(newUpdataModal)">取消</button>
                <button type="button" class="btn btn-primary" (click)="updataDeviceSubmit(newUpdataModal)">升级</button>
            </div>
        </div>
    </div>
</div>
<!--新的设备升级  end-->
<!-- 设置厂区在线 -->
<div bsModal #factoryOnlineModal="bs-modal" id="factoryOnlineModal" class="modal fade" tabindex="-1" role="dialog"
    aria-labelledby="myLargeModalLabel" aria-hidden="true" style="overflow: auto;">
    <div class="modal-dialog modal-lg" style="width: 1000px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" (click)="cancelFactoryOnline(factoryOnlineModal)"
                    aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">设置厂区在线</h4>
            </div>
            <div class="modal-body" style="padding: 15px;">
                <div class="page-header clearfix s_table_opreation"
                    style="margin-top: 0px;margin-bottom: 15px;padding-bottom: 15px;">
                    <div class="left page-header-btn">

                        <!-- 公司的模块插入 -->
                        <sa-company-tree-car #factoryOnlineComponent companyTreeId="company4"
                            wrapId="factoryOnlineModal" [isShowCarSort]="false" [isShowCarNum]="false"
                            [isLinkCompanyAndCar]='false'
                            (companySelected)="onlinecompanySelected($event)"></sa-company-tree-car>


                        <button type="button" class="btn btn-primary" (click)="factory_table_search()">查询</button>
                        <button type="button" class="btn btn-primary" (click)="factoryAdd(addFactoryModal)">添加</button>

                    </div>
                    <div class="right top-search">
                        <input type="text" id="factoryOnlineSearch" [(ngModel)]="factoryOnlineSearchKey"
                            (change)="factory_table_search()" class="search-input" placeholder="厂区名称">
                        <span class="top-search-box">
                            <button class="top-search-btn" type="button" (click)="factory_table_search()"> <i
                                    class="fa fa-search"></i></button>
                        </span>
                    </div>
                </div>
                <div class="table_scroll">
                    <table
                        class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                        <thead>
                            <tr>
                                <th>厂区名称</th>
                                <th>经纬度</th>
                                <th>半径[米]</th>
                                <th>描述</th>
                                <th>操作人</th>
                                <th>操作时间</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>

                            <tr *ngFor="let row of factoryOnlineTableData; let i = index" [attr.data-index]="i"
                                [ngClass]='{selected: row.isChecked }'>
                                <td>{{row.companyName}}</td>
                                <td>[{{row.lng}} , {{row.lat}}]</td>
                                <td>{{row.r}}</td>
                                <td>{{row.remark}}</td>
                                <td>{{row.createUser}}</td>
                                <td>{{row.updateDate}}</td>
                                <td>
                                    <button type="button" (click)="editFactory(row,addFactoryModal)">编辑</button>
                                    <button type="button" (click)="delFactory(row)">删除</button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class="table-fix clearfix">
                    <paginator [totalRecords]="factoryOnlinetotalCount" [rows]="factoryOnlinePageSize"
                        [currentPage]="factoryOnlineCurPage- 1" (onPageChange)="factoryPaginate($event)">
                    </paginator>
                    <button type="button" class="btn default refresh_btn" (click)="factoryTableRefresh()"><i
                            class="fa fa-refresh"></i></button>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 设置厂区在线 end-->
<!-- 添加和编辑厂区 -->
<section bsModal #addFactoryModal="bs-modal" class="modal fade" tabindex="-1" role="dialog"
    aria-labelledby="myLargeModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg" id="addFactoryModal">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" (click)="closeFactory(addFactoryModal)" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 *ngIf="!factory.id" class="modal-title">添加厂区信息</h4>
                <h4 *ngIf="factory.id" class="modal-title">编辑厂区信息</h4>
            </div>
            <div class="modal-body">
                <form id="setFactoryFrom" class="form-horizontal" role="form" novalidate="novalidate"
                    [saBootstrapValidator]="factoryvalidatorOptions">
                    <div class="row form-horizontal">
                        <div class="form-group clearfix">
                            <label class="control-label col-md-2 col-sm-2 no-padding-right">公司名称<sup>*</sup></label>
                            <div class="col-sm-9">
                                <sa-company-tree inputName="selectedCompanyName3" [Height]="32"
                                    [companyNameValue]="selectedCompanyName3" [companyIdValue]="selectedCompanyId3"
                                    companyTreeId="companyTree7"
                                    (companySelected)="factorySelected($event)"></sa-company-tree>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label">经度<sup>*</sup></label>
                            <div class="col-md-9">
                                <input name="lng" id="longitude" [(ngModel)]="factory.lng" type="text"
                                    class="form-control form-control-sm" placeholder="经度">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label">纬度<sup>*</sup></label>
                            <div class="col-md-7">
                                <input name="lat" id="latitude" [(ngModel)]="factory.lat" type="text"
                                    class="form-control form-control-sm" placeholder="纬度">
                            </div>
                            <button id="positionBtn" type="button" class="btn btn-primary col-md-1"
                                style="padding:4px;">打开地图</button>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label"
                                style="white-space: nowrap;">有效半径[米]<sup>*</sup></label>
                            <div class="col-md-7">
                                <input name="r" id="radius" [(ngModel)]="factory.r" type="text"
                                    class="form-control form-control-sm" placeholder="有效半径">
                            </div>
                            <button id="circleBtn" type="button" class="btn btn-primary col-md-1"
                                style="padding:4px;">位置预览</button>
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label col-sm-2 no-padding-right">描述</label>
                            <div class="col-sm-9">
                                <div class="clearfix">
                                    <input class="form-control" name="remark" [(ngModel)]='factory.remark' type="text"
                                        placeholder="填写描述" />
                                </div>
                            </div>
                        </div>

                    </div>
                </form>
                <div style="position:relative;">
                    <div id="allMap" style="width:100%;height:300px;display:none;position: relative;">
                    </div>
                    <div class="top-search" id="searchWrap" style="display: none;position:absolute;left: 10px;top:8px">
                        <div id="r-result" class="search-input cancle"
                            style="position: absolute;padding-left: 0px;left: 0px;top: -2px;">
                            <span class="top-search-box" id='mapSearchIcon' style="bottom: -2px;width:30px;"
                                (click)="clickSearchMap()">
                                <button class="top-search-btn" type="button"> <i class="fa fa-search"></i></button>
                            </span>
                            <input type="text" id="suggestId" class="search-input" value="百度" placeholder="搜索地点"
                                style="padding-left:30px;">
                            <div class="s_del_icon" (click)='delKey("mapSearch")'>x</div>
                        </div>
                        <div id="searchResultPanel"
                            style="border:1px solid #C0C0C0;width:150px;height:auto; display:none;position: absolute;left: 10px;top:8px">
                        </div>
                    </div>
                    <span class="colse" id="colse" title="单击关闭地图"
                        style="display:none;font-size:18px;color:#000000;cursor:pointer;position:absolute;right:10px;top:8px;">X</span>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" (click)="closeFactory(addFactoryModal)">取消</button>
                <button type="button" *ngIf="!factory.id" class="btn btn-primary"
                    (click)="addSubmitFactory(addFactoryModal)">提交</button>
                <button type="button" *ngIf="factory.id" class="btn btn-primary"
                    (click)="editSubmitFactory(addFactoryModal)">提交</button>
            </div>
        </div>
    </div>
</section>
<!-- 添加厂区  结束 -->
<!-- 图片查看   弹窗-->
<section bsModal #ImgModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"
    aria-hidden="true">
    <div class="modal-dialog modal-lg" style="width: 1000px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" (click)="imgClose(ImgModal)" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">图片<span *ngIf='modal.carNumber'>-[{{modal.carNumber}}]</span></h4>
            </div>
            <div class="modal-body" style="padding: 0 20px 20px 20px">
                <div class="row form-horizontal imagesInfo" *ngIf='imgInfo.length != 0'>
                    <!-- <div class="imagesList" >
						<div *ngFor="let item of imgInfo" class="imagesList-cont">
							<div class="imgList" *ngIf='item.index == 1'>
								<label class="imgTitle">车辆正面</label>
								<div class="imgCont" *ngFor="let row of item.localImg" (click)="bigimg(ImgBigModal,row)">
									<img class="imgSrc" [src]="row" alt="车辆正面"/>
								</div>
							</div>
							<div class="imgList" *ngIf='item.index == 2'>
								<label class="imgTitle">车辆侧面</label>
								<div class="imgCont" *ngFor="let row of item.localImg" (click)="bigimg(ImgBigModal,row)">
									<img class="imgSrc" [src]="row" alt="车辆侧面"/>
								</div>
							</div>
							<div class="imgList" *ngIf='item.index == 3'>
								<label class="imgTitle">主机</label>
								<div class="imgCont" *ngFor="let row of item.localImg" (click)="bigimg(ImgBigModal,row)">
									<img class="imgSrc" [src]="row" alt="主机"/>
								</div>
							</div>
							<div class="imgList" *ngIf='item.index == 5'>
								<label class="imgTitle">天线</label>
								<div class="imgCont" *ngFor="let row of item.localImg" (click)="bigimg(ImgBigModal,row)">
									<img class="imgSrc" [src]="row" alt="天线"/>
								</div>
							</div>
							<div class="imgList" *ngIf='item.index == 4' style="display: none;"></div>
							<div class="imgList" *ngIf='item.index == 6' style="display: none;"></div>
							<div class="imgList" *ngIf='item.index == 7' style="display: none;"></div>
						</div>
					</div> -->
                    <div class="imagesList imagesList-sensor">
                        <div *ngFor="let item of imgInfo">
                            <div class="imgFileList" *ngIf='item.index == 1'>
                                <label class="imgTitle">车辆正面</label>
                                <div class="imgContList">
                                    <div class="imgCont" *ngFor="let row of item.localImg"
                                        (click)="bigimg(ImgBigModal,row)">
                                        <img class="imgSrc" [src]="row" alt="车辆正面" />
                                    </div>
                                </div>
                            </div>
                            <div class="imgFileList" *ngIf='item.index != 1' style="display: none;"></div>
                        </div>
                    </div>
                    <div class="imagesList imagesList-sensor">
                        <div *ngFor="let item of imgInfo">
                            <div class="imgFileList" *ngIf='item.index == 2'>
                                <label class="imgTitle">车辆侧面</label>
                                <div class="imgContList">
                                    <div class="imgCont" *ngFor="let row of item.localImg"
                                        (click)="bigimg(ImgBigModal,row)">
                                        <img class="imgSrc" [src]="row" alt="车辆侧面" />
                                    </div>
                                </div>
                            </div>
                            <div class="imgFileList" *ngIf='item.index != 2' style="display: none;"></div>
                        </div>
                    </div>
                    <div class="imagesList imagesList-sensor">
                        <div *ngFor="let item of imgInfo">
                            <div class="imgFileList" *ngIf='item.index == 3'>
                                <label class="imgTitle">主机</label>
                                <div class="imgContList">
                                    <div class="imgCont" *ngFor="let row of item.localImg"
                                        (click)="bigimg(ImgBigModal,row)">
                                        <img class="imgSrc" [src]="row" alt="主机" />
                                    </div>
                                </div>
                            </div>
                            <div class="imgFileList" *ngIf='item.index != 3' style="display: none;"></div>
                        </div>
                    </div>
                    <div class="imagesList imagesList-sensor">
                        <div *ngFor="let item of imgInfo">
                            <div class="imgFileList" *ngIf='item.index == 5'>
                                <label class="imgTitle">天线</label>
                                <div class="imgContList">
                                    <div class="imgCont" *ngFor="let row of item.localImg"
                                        (click)="bigimg(ImgBigModal,row)">
                                        <img class="imgSrc" [src]="row" alt="天线" />
                                    </div>
                                </div>
                            </div>
                            <div class="imgFileList" *ngIf='item.index != 5' style="display: none;"></div>
                        </div>
                    </div>
                    <div class="imagesList imagesList-sensor">
                        <div *ngFor="let item of imgInfo">
                            <div class="imgFileList" *ngIf='item.index == 4'>
                                <label class="imgTitle">传感器</label>
                                <div class="imgContList">
                                    <div class="imgCont" *ngFor="let row of item.localImg"
                                        (click)="bigimg(ImgBigModal,row)">
                                        <img class="imgSrc" [src]="row" alt="传感器" />
                                    </div>
                                </div>
                            </div>
                            <div class="imgFileList" *ngIf='item.index != 5' style="display: none;"></div>
                        </div>
                    </div>
                    <div class="imagesList imagesList-sensor">
                        <div *ngFor="let item of imgInfo">
                            <div class="imgFileList" *ngIf='item.index == 7'>
                                <label class="imgTitle">电源</label>
                                <div class="imgContList">
                                    <div class="imgCont" *ngFor="let row of item.localImg"
                                        (click)="bigimg(ImgBigModal,row)">
                                        <img class="imgSrc" [src]="row" alt="电源" />
                                    </div>
                                </div>
                            </div>
                            <div class="imgFileList" *ngIf='item.index != 7' style="display: none;"></div>
                        </div>
                    </div>
                    <div class="imagesList imagesList-other">
                        <div *ngFor="let item of imgInfo">
                            <div class="imgFileList" *ngIf='item.index == 6'>
                                <label class="imgTitle">其他</label>
                                <div class="imgContList">
                                    <div class="imgCont" *ngFor="let row of item.localImg"
                                        (click)="bigimg(ImgBigModal,row,ImgModal)">
                                        <img class="imgSrc" [src]="row" alt="其他" />
                                    </div>
                                </div>
                            </div>
                            <div class="imgFileList" *ngIf='item.index != 6' style="display: none;"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- 图片查看 弹窗end-->
<!-- 图片放大查看   弹窗-->
<section bsModal #ImgBigModal="bs-modal" class="modal fade imgView " tabindex="-1" role="dialog"
    aria-labelledby="myLargeModalLabel" aria-hidden="true">
    <!-- <div class="closeImg" (click)="CloseBigImg(ImgBigModal)"></div> -->
    <div class="modal-content modal-imgContent" (click)="CloseBigImg(ImgBigModal)">
        <img [src]="bigImg" />
    </div>
</section>
<!-- 图片放大查看 弹窗end-->

<!-- 离线统计 -->
<div bsModal #offlineManageModal="bs-modal" id="offlineManageModal" class="modal fade" tabindex="-1" role="dialog"
    aria-labelledby="myLargeModalLabel" aria-hidden="true" style="overflow: auto;">
    <div class="modal-dialog modal-lg" style="width: 1350px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" (click)="canceloffline(offlineManageModal)" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">离线统计</h4>
            </div>
            <div class="modal-body" style="padding: 15px;display:flex">
                <div style="width: 18%; border-right:1px solid #ccc;margin-right: 18px;padding-right: 15px;">
                    <ul>
                        <li class="offlineTypeLi" [ngClass]="{'activeLi':offlineType=='3'}"
                            (click)="changeOffilineType('3')"><span class="offlineTypeText">全部</span><span
                                class="offlineTypeCount">{{!offlineCountArray[2]&&offlineCountArray[2]!==0?'':offlineCountArray[2]}}</span>
                        </li>
                        <li class="offlineTypeLi" [ngClass]="{'activeLi':offlineType=='1'}"
                            (click)="changeOffilineType('1')"><span class="offlineTypeText">从未上线</span><span
                                class="offlineTypeCount">{{!offlineCountArray[0]&&offlineCountArray[0]!==0?'':offlineCountArray[0]}}</span>
                        </li>
                        <li class="offlineTypeLi" [ngClass]="{'activeLi':offlineType=='2'}"
                            (click)="changeOffilineType('2')"><span class="offlineTypeText">当天离线</span><span
                                class="offlineTypeCount">{{!offlineCountArray[1]&&offlineCountArray[1]!==0?'':offlineCountArray[1]}}</span>
                        </li>
                        <li class="offlineTypeLi" [ngClass]="{'activeLi':offlineType=='4'}"
                            (click)="changeOffilineType('4')"><span class="offlineTypeText">离线1-3天</span><span
                                class="offlineTypeCount">{{!offlineCountArray[3]&&offlineCountArray[3]!==0?'':offlineCountArray[3]}}</span>
                        </li>
                        <li class="offlineTypeLi" [ngClass]="{'activeLi':offlineType=='5'}"
                            (click)="changeOffilineType('5')"><span class="offlineTypeText">离线3-5天</span><span
                                class="offlineTypeCount">{{!offlineCountArray[4]&&offlineCountArray[4]!==0?'':offlineCountArray[4]}}</span>
                        </li>
                        <li class="offlineTypeLi" [ngClass]="{'activeLi':offlineType=='6'}"
                            (click)="changeOffilineType('6')"><span class="offlineTypeText">离线5-7天</span><span
                                class="offlineTypeCount">{{!offlineCountArray[5]&&offlineCountArray[5]!==0?'':offlineCountArray[5]}}</span>
                        </li>
                        <li class="offlineTypeLi" [ngClass]="{'activeLi':offlineType=='7'}"
                            (click)="changeOffilineType('7')"><span class="offlineTypeText">离线7天以上</span><span
                                class="offlineTypeCount">{{!offlineCountArray[6]&&offlineCountArray[6]!==0?'':offlineCountArray[6]}}</span>
                        </li>
                    </ul>

                </div>
                <div style="width: 81%;">
                    <div class="page-header clearfix s_table_opreation"
                        style="margin-top: 0px;margin-bottom: 15px;padding-bottom: 15px;">
                        <div class="left page-header-btn">

                            <!-- 公司的模块插入 -->
                            <sa-company-tree-car #offlineCompanyComponent companyTreeId="offlineCompanyTree"
                                wrapId="offlineManageModal" [isShowCarSort]="false" [isShowCarNum]="true"
                                (companySelected)="offlineCompanySelected($event)"></sa-company-tree-car>
                            <div class="top_module top_module_box">
                                <span class="module_text">硬件版本</span>
                                <input type="text" class="module_inp top_module_select" [(ngModel)]="hardVersion"
                                    placeholder="硬件版本" />
                            </div>
                            <div class="top_module" style="border: 1px solid #ccc;overflow: hidden;border-radius: 4px;">
                                <span class="module_text" style="border-radius: 0;">警报类型
                                </span><select name="" [(ngModel)]='alarmType'
                                    class="form-control inline_block sort_box">
                                    <option value="">全部</option>
                                    <option value="0">无警报</option>
                                    <option value="1">断电警报</option>
                                    <option value="2">离线警报</option>
                                    <option value="3">异常断电</option>
                                </select>
                            </div>
                            <div class="selectDate top_module modify_border">
                                <span class="module_text">GPS时间</span>
                                <table-select-date [notInit]='true' [specifyId]='specifyId' [specifyTime]='specifyTime'
                                    (outerTime)="getSelectTableTime($event)"></table-select-date>
                            </div>
                            <!-- <div class="form-group col-xs-12 col-sm-6 col-lg-3">
                                <div class="input-daterange input-group">
                                    <input type="text" class="form-control" id="datetimepicker1">
                                    <span class="input-group-addon">至</span>
                                    <input type="text" class="form-control" id="datetimepicker2">
                                </div>
                            </div> -->
                            <!-- <div class="top_module top_module_box">
                                <span class="module_text">操作人</span>
                                <input type="text" class="module_inp top_module_select" [(ngModel)]="createUser" placeholder="操作人"/>
                            </div>
                            <div class="top_module top_module_box">
                                <span class="module_text">ICCID</span>
                                <input type="text" class="module_inp top_module_select" [(ngModel)]="iCCID" placeholder="ICCID"/>
                            </div>
                            <div class="top_module top_module_box s_hover_box">
                                <span class="module_text">安装时间</span>
                                <input type="text" class="module_inp top_module_select form-control" id="installTimePicker" autocomplete="off" [(ngModel)]="offline_installTime" placeholder="安装时间"/>
                                <div class="s_del_icon" (click)='delTimePicker(1)'>x</div>
                            </div>
                            <div class="top_module top_module_box s_hover_box">
                                <span class="module_text">更新时间</span>
                                <input type="text" class="module_inp top_module_select form-control" id="updateTimePicker" autocomplete="off" [(ngModel)]="offline_updateTime" placeholder="更新时间"/>
                                <div class="s_del_icon" (click)='delTimePicker(2)'>x</div>
                            </div> -->
                            <!-- <div class="top_module" style="border: 1px solid #ccc;overflow: hidden;border-radius: 4px;">
								<span class="module_text" style="border-radius: 0;">离线类型
								</span><select name="" [(ngModel)]='offlineType' class="form-control inline_block sort_box">
									<option value="3">全部</option>
									<option value="1">从未上线</option>
									<option value="2">当天离线</option>
									<option value="4">离线1-3天</option>
									<option value="5">离线3-5天</option>
									<option value="6">离线5-7天</option>
									<option value="7">长期离线</option>
								</select>
							</div> -->
                            <button type="button" class="btn btn-primary" (click)="offline_table_search()">查询</button>
                            <button type="button" class="btn btn-primary" (click)="export_offline()">导出</button>
                            <!-- <button type="button" class="btn btn-primary" (click)="factoryAdd(addFactoryModal)">添加</button> -->

                        </div>
                        <!-- <div class="right top-search">
							<input type="text" id="factoryOnlineSearch" [(ngModel)]="offlineSearchKey" (change)="offline_table_search()" class="search-input" placeholder="">
							<span class="top-search-box">
								<button class="top-search-btn" type="button" (click)="offline_table_search()"> <i class="fa fa-search"></i></button>
							</span>
						</div> -->
                    </div>
                    <div class="table_scroll">
                        <table
                            class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                            <thead>
                                <tr>
                                    <th>厂区名称</th>
                                    <th>车牌号</th>
                                    <th>设备编码</th>
                                    <th>GPS时间</th>
                                    <th>硬件版本</th>
                                    <th>ICCID</th>
                                    <th>离线原因</th>
                                    <!-- <th>警报类型</th> -->
                                    <th>重量</th>
                                    <th>重量时间</th>
                                    <th>安装人</th>
                                    <th>安装时间</th>
                                    <th>更新时间</th>
                                    <th>地理位置</th>
                                </tr>
                            </thead>
                            <tbody>

                                <tr *ngFor="let row of offlineTableData; let i = index" [attr.data-index]="i"
                                    [ngClass]='{selected: row.isChecked }'>
                                    <td>{{row.companyName}}</td>
                                    <td>{{row.carNumber}}</td>
                                    <td>{{row.deviceId}}</td>
                                    <td>{{row.gpsUploadDate}}</td>
                                    <td>{{row.hwVersion}}</td>
                                    <td>{{row.iCCID}}</td>
                                    <td style="color: #FF9800;">
                                        <span *ngIf="row.alarmType == '2'||row.alarmType == '1'">断电中</span>
                                        <span *ngIf="row.alarmType == '0'">未知原因</span>
                                        <span *ngIf="row.alarmType == '3'">异常断电</span>
                                    </td>
                                    <!-- <td style="color: #FF9800;">
										<span *ngIf="row.alarmType == '1'" >断电警报</span>
										<span *ngIf="row.alarmType == '2'" >离线警报</span>
										<span *ngIf="row.alarmType == '0'" >无警报</span>
										<span *ngIf="row.alarmType == '3'" >异常断电</span>
									</td> -->
                                    <td>{{row.weight}}</td>
                                    <td>{{row.carUploadDate}}</td>
                                    <td>{{row.createUser}}</td>
                                    <td>{{row.installTime}}</td>
                                    <td>{{row.updateTime}}</td>
                                    <td>{{row.lngLat?[row.lngLat]:''}}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="table-fix clearfix">
                        <paginator [totalRecords]="offlinetotalCount" [rows]="offlinePageSize"
                            [currentPage]="offlineCurPage- 1" (onPageChange)="offlinePaginate($event)">
                        </paginator>
                        <button type="button" class="btn default refresh_btn" (click)="offlineTableRefresh()"><i
                                class="fa fa-refresh"></i></button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 离线统计 end-->

<!-- 表头弹窗 -->
<section bsModal #headerModal="bs-modal" class="modal fade" tabindex="-1" role="dialog"
    aria-labelledby="myLargeModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width:800px">
            <div class="modal-header">
                <button type="button" class="close" (click)="closeHeader(headerModal)" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title">设置表头管理</h4>
            </div>
            <div class="modal-body" style="height: 500px;overflow: auto;">
                <table
                    class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                    <thead>
                        <tr>
                            <th>序号</th>
                            <th>字段名称</th>
                            <th style="text-align: center;">是否隐藏</th>
                            <th style="text-align: center;">操作</th>
                        </tr>
                    </thead>
                    <tbody class="tbodyHeader">
                        <tr *ngFor="let item of faultPopupList;">
                            <td>{{item.order}}</td>
                            <td>{{item.field}}</td>
                            <td class="smart-form" style="padding: 7px 10px;text-align: center;">
                                <input style="margin-right: 5px;display: none;" name="status" class="isStatus"
                                    type="checkbox" [checked]="item.isStatus" [attr.key]='item.fieldName'>
                            </td>
                            <td class="CBtn">
                                <span class="MoveUp" [ngClass]="{'hiddenMove':item.order == 1}"
                                    (click)="MoveClick(item,'1')">上移</span>
                                <span class="MoveDown" [ngClass]="{'hiddenMove':item.order == faultList.length}"
                                    (click)="MoveClick(item,'2')">下移</span>
                                <span class="MoveTop" [ngClass]="{'hiddenMove':item.order == 1}"
                                    (click)="MoveClick(item,'3')">置顶</span>
                                <span class="MoveBottom" [ngClass]="{'hiddenMove':item.order == faultList.length}"
                                    (click)="MoveClick(item,'4')">置底</span>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" (click)="closeHeader(headerModal)">取消</button>
                <button type="button" class="btn btn-primary" (click)="recoveryHeader()">重置</button>
                <button type="button" class="btn btn-primary" (click)="submitHeader(headerModal)">提交</button>
            </div>
        </div>
    </div>
</section>
<!--  进厂放行-->
<div bsModal #openModal="bs-modal" id="openModal" class="modal fade" tabindex="-1" role="dialog"
    aria-labelledby="myLargeModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" (click)="lgModalhide(openModal)" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">进厂放行</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <form class="form" role="form">
                        <div class="row" style="margin-bottom: 10px;">
                            <div class="form-group">
                                <label class="control-label">进厂放行配置：</label>
                                <div class="inline_block">
                                    <!-- <label class="radio radio-inline" style="vertical-align:inherit;">
                                        <input type="radio" class="radiobox" name="1" value="1" [(ngModel)]="lgisPush">
                                        <span>放行</span>
                                    </label> -->
                                    <label class="radio radio-inline" style="vertical-align:inherit;">
                                        <input type="radio" class="radiobox" name="time" value="time"
                                            [(ngModel)]="lgisPush">
                                        <span>自定义放行[<span
                                                *ngIf="isPushTime == '0.5'">默认</span><span>{{isPushTime}}</span>小时后解除放行]</span>
                                    </label>
                                    <div class='timeWrap'>
                                        <input type="number" οnkeyup="value=value.replace(/[^\d]/g,'')"
                                            (change)="inputChange()" name="isPushTime" placeholder="默认0.5个小时"
                                            [(ngModel)]="isPushTime" style="width: 100px;padding: 0 30px 0 12px;" />
                                        <span>小时</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" style="margin-bottom: 10px;">
                            <div class="form-group">
                                <label class="control-label">是否替换厂区为厂区坐标：</label>
                                <div class="inline_block">
                                    <label class="radio radio-inline" style="vertical-align:inherit;">
                                        <input type="radio" class="radiobox" name="style-0a" checked
                                            (change)="radioChange($event.target.checked,'0')">
                                        <span>不替换</span>
                                    </label>
                                    <label class="radio radio-inline" style="vertical-align:inherit;">
                                        <input type="radio" class="radiobox" name="style-0a"
                                            (change)="radioChange($event.target.checked,'1')">
                                        <span>替换</span>
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="row" style="margin-bottom: 10px;" *ngIf="replaceFactoryGps">
                            <div class="form-group" style="display: flex; align-items: center;">
                                <label class="control-label">厂区选择：</label>
                                <div class="inline_block">
                                    <sa-company-tree companyTreeId="releaseCompanyTree"
                                        (companySelected)="releaseCompanySelected($event)"></sa-company-tree>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div style="width: 60%;display: inline-block;position: absolute;bottom: 16px;left: 12px;">
                <p style="color: #ccc;"><span>【说明】</span><span>自定义放行：从当前时间开始放行，到自定义时间后解除放行。 </span></p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" (click)="lgModalhide(openModal)">取消</button>
                <button type="button" class="btn btn-primary"
                    (click)="setTimeSubmit(openModal,deviceDetailModal)">确认</button>
            </div>
        </div>
    </div>
</div>
<!--进厂放行弹窗end-->
<!--  信噪比检测-->
<div bsModal #signalTestingModal="bs-modal" id="signalTesting" class="modal fade" tabindex="-1" role="dialog"
    aria-labelledby="myLargeModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg" style="width: 700px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" (click)="signalTestingModalhide(signalTestingModal)"
                    aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">信噪比检测</h4>
            </div>
            <div class="modal-body" class="SignalTestingContent">
                <div class="row form-horizontal">
                    <div class="form-group col-xs-12 TestingContentList">
                        <div class="col-xs-4 TestingChange">
                            <label class="control-label">检测频率[秒]：</label>
                            <input type="number" class="frequency" οnkeyup="value=value.replace(/[^\d]/g,'')"
                                name="frequency" placeholder="默认3秒" [(ngModel)]="frequency" />
                        </div>
                        <div class="col-xs-4 TestingChange">
                            <label class="control-label">检测次数：</label>
                            <input type="number" class="DetectionTimes" οnkeyup="value=value.replace(/[^\d]/g,'')"
                                name="DetectionTimes" placeholder="默认10次" [(ngModel)]="DetectionTimes" />
                        </div>
                        <div class="col-xs-2 TestingContentSubmit">
                            <button type="button" *ngIf="isShowStartBtn" class="btn btn-primary"
                                (click)="startSubmit()">开始</button>
                            <button type="button" *ngIf="!isShowStartBtn" class="btn btn-primary"
                                (click)="endSubmit()">结束[{{TestingTimes}}]</button>
                        </div>

                    </div>
                    <div class="form-group col-xs-12 TestingContentList">
                        <label class="control-label col-xs-2">应答次数</label>
                        <div class="col-xs-4 TestingData">{{answerTimes}}</div>
                        <label class="control-label col-xs-2">设备ID</label>
                        <div class="col-xs-4 TestingData">{{SignalTestingData.code_deviceId}}</div>
                    </div>
                    <div class="form-group col-xs-12 TestingContentList">
                        <label class="control-label col-xs-2">采集时间</label>
                        <div class="col-xs-4 TestingData">{{SignalTestingData.code_0407}}</div>
                        <label class="control-label col-xs-2">GPS模块</label>
                        <div class="col-xs-4 TestingData">
                            <span *ngIf="SignalTestingData.code_04D8 == '未识别'"
                                style="color: red;">{{SignalTestingData.code_04D8}}</span>
                            <span *ngIf="SignalTestingData.code_04D8 != '未识别'">{{SignalTestingData.code_04D8}}</span>
                        </div>
                    </div>
                    <div class="form-group col-xs-12 TestingContentList">
                        <label class="control-label col-xs-2">GPS时间</label>
                        <div class="col-xs-4 TestingData">
                            <span *ngIf="SignalTestingData.isShowRedTime"
                                style="color: red;">{{SignalTestingData.code_0408}}</span>
                            <span *ngIf="!SignalTestingData.isShowRedTime">{{SignalTestingData.code_0408}}</span>
                        </div>
                        <label class="control-label col-xs-2">GPS航向</label>
                        <div class="col-xs-4 TestingData">{{SignalTestingData.code_040B}}</div>
                    </div>
                    <div class="form-group col-xs-12 TestingContentList">
                        <label class="control-label col-xs-2">GPS经度</label>
                        <div class="col-xs-4 TestingData">{{SignalTestingData.code_0409}}</div>
                        <label class="control-label col-xs-2">GPS纬度</label>
                        <div class="col-xs-4 TestingData">{{SignalTestingData.code_040A}}</div>
                    </div>
                    <div class="form-group col-xs-12 TestingContentList">
                        <label class="control-label col-xs-2">GPS速度</label>
                        <div class="col-xs-4 TestingData">{{SignalTestingData.code_040C}}</div>
                        <label class="control-label col-xs-2">信号强度</label>
                        <div class="col-xs-4 TestingData">{{SignalTestingData.code_041D}}</div>
                    </div>
                    <div class="form-group col-xs-12 TestingContentList">
                        <label class="control-label col-xs-2">定位状态</label>
                        <div class="col-xs-4 TestingData">
                            <span *ngIf="SignalTestingData.code_04D0 == 'GPS无定位'"
                                style="color: red;">{{SignalTestingData.code_04D0}}</span>
                            <span *ngIf="SignalTestingData.code_04D0 != 'GPS无定位'">{{SignalTestingData.code_04D0}}</span>
                        </div>
                        <label class="control-label col-xs-2">GPS天线</label>
                        <div class="col-xs-4 TestingData">
                            <span
                                *ngIf="SignalTestingData.code_04D7 == 'GPS天线未知' || SignalTestingData.code_04D7 == 'GPS天线开路' || SignalTestingData.code_04D7 == 'GPS天线短路'"
                                style="color: red;">{{SignalTestingData.code_04D7}}</span>
                            <span
                                *ngIf="SignalTestingData.code_04D7 != 'GPS天线未知' && SignalTestingData.code_04D7 != 'GPS天线开路' && SignalTestingData.code_04D7 != 'GPS天线短路'">{{SignalTestingData.code_04D7}}</span>
                        </div>
                    </div>
                    <div class="form-group col-xs-12 TestingContentList">
                        <label class="control-label col-xs-2">GPS定位卫星</label>
                        <div class="col-xs-4 TestingData">{{SignalTestingData.code_04D9}}</div>
                        <label class="control-label col-xs-2">GPS可视卫星</label>
                        <div class="col-xs-4 TestingData">{{SignalTestingData.code_04DB}}</div>
                    </div>
                    <div class="form-group col-xs-12 TestingContentList">
                        <label class="control-label col-xs-2">北斗定位卫星</label>
                        <div class="col-xs-4 TestingData">{{SignalTestingData.code_04DA}}</div>
                        <label class="control-label col-xs-2">北斗可视卫星</label>
                        <div class="col-xs-4 TestingData">{{SignalTestingData.code_04DC}}</div>
                    </div>
                    <div class="form-group col-xs-12 TestingEchart">
                        <label class="control-label col-xs-12">GPS信噪比</label>
                        <div id="GPSEchart" style="height: 200px;width: 668px;"></div>
                    </div>
                    <div class="form-group col-xs-12 TestingEchart">
                        <label class="control-label col-xs-12">北斗信噪比</label>
                        <div id="northEchart" style="height: 200px;width: 668px;"></div>
                    </div>
                </div>
            </div>
            <!-- <div class="modal-footer">
                <button type="button" class="btn btn-default" (click)="lgModalhide(openModal)">取消</button>
                <button type="button" class="btn btn-primary" (click)="setTimeSubmit(openModal,deviceDetailModal)">确认</button>
            </div> -->
        </div>
    </div>
</div>
<!--信噪比检测end-->

<!--  批量进厂限制-->
<div bsModal #limitModal="bs-modal" id="limitModal" class="modal fade" tabindex="-1" role="dialog"
    aria-labelledby="myLargeModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" (click)="cancelModalhide(limitModal)" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title">批量进厂限制</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <form class="form" role="form">
                        <div class="row" style="margin-bottom: 10px">
                            <div class="form-group">
                                <label class="control-label">是否批量进厂限制：</label>
                                <div class="inline_block">
                                    <label class="radio radio-inline" style="vertical-align: inherit">
                                        <input type="radio" class="radiobox" name="0" value="0"
                                            [(ngModel)]="limitIsPush" />
                                        <span>不限制</span>
                                    </label>
                                    <label class="radio radio-inline" style="vertical-align: inherit">
                                        <input type="radio" class="radiobox" name="1" value="1"
                                            [(ngModel)]="limitIsPush" />
                                        <span>限制</span>
                                    </label>
                                    <label class="radio radio-inline" style="vertical-align: inherit">
                                        <input type="radio" class="radiobox" name="time" value="time"
                                            [(ngModel)]="limitIsPush" />
                                        <span>
                                            自定义限制[
                                            <span *ngIf="limitPushTime == 6">默认</span>
                                            <span>{{ limitPushTime }}</span>
                                            小时后进行限制]
                                        </span>
                                    </label>
                                    <input type="number" *ngIf="limitIsPush == 'time'"
                                        οnkeyup="value=value.replace(/[^\d]/g,'')" (change)="limitInputChange()"
                                        name="limitPushTime" placeholder="默认6小时" [(ngModel)]="limitPushTime"
                                        style="width: 84px; padding: 0 12px" />
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div style="width: 60%; display: inline-block; position: absolute; bottom: 16px; left: 12px">
                <p style="color: #ccc">
                    <span>【说明】</span>
                    <span>自定义限制：设置时间[小时]后，车辆进厂限制生效，没有生效之前车辆允许进厂。</span>
                </p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" (click)="cancelModalhide(limitModal)">取消</button>
                <button type="button" class="btn btn-primary" (click)="submitLimitModal(limitModal)">确认</button>
            </div>
        </div>
    </div>
</div>
<!--弹窗end-->

<!-- 设置设置频率 -->
<div bsModal #setFrequencyModal="bs-modal" id="setFrequencyModal" class="modal fade" tabindex="-1" role="dialog"
    aria-labelledby="myLargeModalLabel" aria-hidden="true" style="overflow: auto;">
    <div class="modal-dialog modal-lg" style="width: 1000px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" (click)="cancelSetFrequency(setFrequencyModal)"
                    aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">取消自动频率设置</h4>
            </div>
            <div class="modal-body" style="padding: 15px;">
                <div class="page-header clearfix s_table_opreation"
                    style="margin-top: 0px;margin-bottom: 15px;padding-bottom: 15px;">
                    <div class="left page-header-btn">
                        <!-- <button type="button" class="btn btn-primary" (click)="factory_table_search()">查询</button> -->
                        <button type="button" class="btn btn-primary"
                            (click)="setFrequencyAdd(addSetFrequencyModal,'single')">添加 [单条]</button>
                        <button type="button" class="btn btn-primary"
                            (click)="setFrequencyAdd(addSetFrequencyModal,'more')">添加 [批量]</button>
                        <button type="button" class="btn btn-primary" (click)="frequencyDeleteAll()">全部删除</button>
                    </div>
                </div>
                <div class="table_scroll">
                    <table
                        class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                        <thead>
                            <tr>
                                <th>车牌号码</th>
                                <th>设备编号</th>
                                <th>取消时长 [天]</th>
                                <th>更新时间</th>
                                <th>更新人员</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr *ngFor="let row of setFrequencyTableData; let i = index" [attr.data-index]="i"
                                [ngClass]='{selected: row.isChecked }'>
                                <td>{{row.carNumber}}</td>
                                <td>{{row.deviceId}}</td>
                                <td>{{row.days}}</td>
                                <td>{{row.updateTime}}</td>
                                <td>{{row.updateName}}</td>
                                <td>
                                    <button type="button"
                                        (click)="editSetFrequency(row,addSetFrequencyModal)">编辑</button>
                                    <button type="button" (click)="delSetFrequency(row)">删除</button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class="table-fix clearfix">
                    <paginator [totalRecords]="setFrequencytotalCount" [rows]="setFrequencyPageSize"
                        [currentPage]="setFrequencyCurPage- 1" (onPageChange)="setFrequencyPaginate($event)">
                    </paginator>
                    <button type="button" class="btn default refresh_btn" (click)="setFrequencyTableRefresh()"><i
                            class="fa fa-refresh"></i></button>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 设置设置频率 end-->
<!-- 添加和编辑设置频率-->
<section bsModal #addSetFrequencyModal="bs-modal" class="modal fade" tabindex="-1" role="dialog"
    aria-labelledby="myLargeModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg" id="addSetFrequencyModal">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" (click)="closeSetFrequency(addSetFrequencyModal)"
                    aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 *ngIf="isMore" class="modal-title">取消自动频率设置 [批量]</h4>
                <h4 *ngIf="!isMore" class="modal-title">取消自动频率设置 [单条]</h4>
            </div>
            <div class="modal-body">
                <form id="setFrequencyFrom" name="setFrequencyFrom" class="form-horizontal" role="form"
                    novalidate="novalidate" [saBootstrapValidator]="setFrequencyValidatorOptions">
                    <div class="row form-horizontal">
                        <div [ngClass]="{hidden: isMore}" class="form-group">
                            <label class="col-md-2 control-label">车牌号码</label>
                            <div class="col-sm-9">
                                <div class="clearfix">
                                    <select class="select2 form-control" style="width:100%" name="carNumber"
                                        id="setFrequencySelect2">
                                        <option value=''></option>
                                    </select>
                                </div>
                            </div>
                        </div>

                        <div *ngIf="!isMore" class="form-group">
                            <label class="col-md-2 control-label">设备编号<sup>*</sup></label>
                            <div class="col-md-9">
                                <input class="form-control" name="deviceId" [(ngModel)]='setFrequency.deviceId'
                                    type="text" placeholder="请输入设备编号" />
                            </div>
                        </div>

                        <div *ngIf="isMore" class="form-group">
                            <label class="col-md-2 control-label">设备编号<sup>*</sup></label>
                            <div class="col-md-9">
                                <textarea class="handleInfo form-control " name="deviceId"
                                    [(ngModel)]="setFrequency.deviceId" cols="30" placeholder="请输入设备编号(按逗号、回车换行隔开)"
                                    rows="4"></textarea>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label">取消时长[天]</label>
                            <div class="col-md-9">
                                <input class="form-control" name="days" [(ngModel)]='setFrequency.days' type="text"
                                    placeholder="请输入取消的天数，不输入，则代表长期"
                                    oninput="value = value.match(/^[1-9][0-9]*$/) ? value : ''" />
                            </div>
                        </div>

                        <!-- <div class="form-group clearfix">
                            <label class="control-label col-sm-2 no-padding-right">描述</label>
                            <div class="col-sm-9">
                                <div class="clearfix">
                                    <input class="form-control" name="remark" [(ngModel)]='setFrequency.remark' type="text"
                                        placeholder="填写描述" />
                                </div>
                            </div>
                        </div> -->

                    </div>
                </form>

            </div>
            <div class="modal-footer frequency-footer">
                <div style="width:350px">
                    说明：需要人工下发指令，将设备设置为1秒频率，请确认设备是否已调整到1秒频率
                </div>
                <div style="width: 210px;">
                    <button type="button" class="btn btn-default"
                        (click)="closeSetFrequency(addSetFrequencyModal)">取消</button>
                    <button type="button" *ngIf="!setFrequency.id" class="btn btn-primary"
                        (click)="addSubmitSetFrequency(addSetFrequencyModal)">提交</button>
                    <button type="button" *ngIf="setFrequency.id" class="btn btn-primary"
                        (click)="editSubmitSetFrequency(addSetFrequencyModal)">提交</button>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- 添加和编辑设置频率 结束 -->
<style>
    .first_row_style .width50 {
        text-align: center;
        width: 50px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        vertical-align: middle;
    }

    .first_row_style .width60 {
        text-align: center;
        width: 60px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        vertical-align: middle;
    }

    .first_row_style .width80 {
        text-align: center;
        width: 80px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        vertical-align: middle;
    }

    .first_row_style .width90 {
        text-align: center;
        width: 90px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        vertical-align: middle;
    }

    .first_row_style .width100 {
        text-align: center;
        width: 100px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        vertical-align: middle;
    }

    .first_row_style .width120 {
        text-align: center;
        width: 120px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        vertical-align: middle;
    }

    .first_row_style .width200 {
        text-align: center;
        width: 200px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        vertical-align: middle;
    }

    .first_row_style.sensor_table {
        max-height: 230px;
        overflow-y: auto;
    }

    .first_row_style.host_table {
        max-height: 150px;
        overflow-y: auto;
    }
</style>